Classe Flashcards
What does struct do
Created a new type, that can have sub items (new type such as int, double ,float)
What I’d a data member
Substruct sub item
What is the member access or dot notation
.
What is abstraction?
Surer interacts with item at high-level
Encapsulation / information bidding
Lower level internal details hidden from the user
What is adt
Abstract data types, type that’s considered well defined operations
Can a class be used to implements an adt
Yuh
What’s a public member functions
User doesn’t. Ed to know how the class dataaa and functions are made but only understands how each public member function behaves
What is a private data member
Variables that member functions can access but class users can not
What is a scope resolution operation
::
What is a constructor and when do they happen
Called automatically, when a variable for that class type is declared, initiallisis is data members
What is a deconstructor and when do they happen
Reallocated data created by member functions. Deconstructor is called atomatically when a variable of that class type is distroyed
What is a mutator
Function that can modify a class data member
What is an accessor function
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
What is the implicit parameter
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.