A function that doesn't change the value of the data members
What is an "accessor" function?
What operator do you use to implement a member function outside of a class?
What is "::"
it goes in the private half of a class
what are Data members
What is the main purpose of a constructor in C++?
What is "to initialize an object"
it make objects.
what do classes do?
A function that changes the value of a data member
What is a "mutator" function?
What do you need to add to mark a function as an accessor?
What is "const"?
It goes in the public section of a class
What are member functions?
What is the rule regarding the name of a constructor in C++?
What is constructors need the same name as the class
To have parts of a function public and private.
What is encapsulation?
It is where you define the member functions.
What is outside the member function?
Where should you initialize member functions?
What is after the class and before the int main
Under which do you use void?
What is public?
What is always true about default constructors?
What is they never take parameters
You use this to change a variable in a class
What is a member function?
It refers to the parameter in the parentheses.
What is explicit?
You use it to call a data function in int main().
What is dot notation?
Where you put constructors before initializing?
Where is public
It is the difference between a constructor and a default constructor.
Why do we use encapsulation?
What is so people don't change the variables
You ignore dot notation while doing so.
How do you call a data function in a data function?
You place the name of the class here.
what is the data type of a constructor?
Where would you put "int count" .
What is Private?
This is an example:
Clock::Clock(){
hour = 0;
minute = 0;
}
What is an example of a defined default constructor?
What the non-private part of encapsulation is called
What is the public interface?