C++ Pointers Classes Memory

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:25 AM on 5/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards

pointer

variable that stores an address

2
New cards

reference

alias for another variable

3
New cards

null pointer

nullptr

4
New cards

dereference pointer

*ptr

5
New cards

address of variable

&x

6
New cards

pass by value

copies the argument

7
New cards

pass by reference

allows function to modify original

8
New cards

const reference

avoids copy and prevents modification

9
New cards

heap allocation

new creates object on heap

10
New cards

free heap allocation

delete releases memory

11
New cards

memory leak

allocated memory is no longer freed

12
New cards

RAII

resource lifetime is tied to object lifetime

13
New cards

constructor

function called when object is created

14
New cards

destructor

function called when object is destroyed

15
New cards

copy constructor

creates object from another object

16
New cards

move semantics

transfers resources instead of copying

17
New cards

class private members

accessible only inside class

18
New cards

class public members

accessible from outside class

19
New cards

struct default access

public

20
New cards

class default access

private

21
New cards

virtual function

enables runtime polymorphism

22
New cards

override

marks function that overrides base virtual function