Do data members belong in the private or public interface?
Private interface
What is an accessor?
A function that allows reading the value of a private data member.
What is a constructor called when it is defined without any parameters?
Default Constructor
Is a class a blueprint or a type for creating objects?
A class is a blueprint for creating projects.
What is a mutator?
A function that allows changing the value of a private data member.
True or False: The main purpose of a constructor is to display an object?
False
The process of providing a public interface while hiding the details of implementation.
Encapsulation
Given a class Soda, how would you correctly define a member function Drink() outside the class?
void Soda :: Drink() { cout << " ";}
What analogy can be used for different data members?
The clock analogy
What notation do member functions use?
Dot Notation
What is the name of the constructor?
The same as the name of the class
A class describes a set of objects with the same what?
Behavior
True or False: Is dot notation needed when calling a member function inside another member function?
False
When implementing a function, what is this symbol called?
::
Scope Resolution Operator
What is the difference between an implicit and explicit parameter?
Explicit parameters are provided by the programmer, while implicit parameters are provided by the compiler.