Classe Flashcards

1
Q

What does struct do

A

Created a new type, that can have sub items (new type such as int, double ,float)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What I’d a data member

A

Substruct sub item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the member access or dot notation

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is abstraction?

A

Surer interacts with item at high-level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Encapsulation / information bidding

A

Lower level internal details hidden from the user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is adt

A

Abstract data types, type that’s considered well defined operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can a class be used to implements an adt

A

Yuh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s a public member functions

A

User doesn’t. Ed to know how the class dataaa and functions are made but only understands how each public member function behaves

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a private data member

A

Variables that member functions can access but class users can not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a scope resolution operation

A

::

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a constructor and when do they happen

A

Called automatically, when a variable for that class type is declared, initiallisis is data members

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a deconstructor and when do they happen

A

Reallocated data created by member functions. Deconstructor is called atomatically when a variable of that class type is distroyed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a mutator

A

Function that can modify a class data member

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is an accessor function

A

Assess data memberfunction but does not modify the class data member function. Mostly the accessor function has a const because the data member is not changing. However the const is not required in the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the implicit parameter

A

Object variable before function name. A pointer pointing to the object aurom7passed to the member function when a function is clalled. Can be acces with the ‘this’ keyword.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an inclusion guards

A

Preprosssor detectors. Cases the compiler to only include the contents of the file once example #define FILENAME

17
Q

What is the big three

A

Copy constructor, copy-assn operator, deconstructor

18
Q

What is the copy constructor

A

Version of constructor than can be called with a sinkhole pass by refence argument automatically called when passing by value into a function

19
Q

What is the copy ass. Operator

A

Overloads the butlitin function (operator=) . The member function that have a regency parameter of class type and returns a reference to the class type