1Passing by reference using &,
Allows you to change the value of the argument
2What is the syntax to overload operators such as --, ++, etc?
Object Object::operator--(int)
3How do you access a static member of an object?
::
4How do you access a non-static member of an object?
Period
5What is a pointer?
A variable that holds the address of another variable
6What is a struct?
A collection of variables. These variables can be of different types, unlike arrays.
7Declare a struct
struct {
int num;
string str;
} structName;
8How do you access a member of a structure?
structName.varName
9What is the difference between a private and public member of a class?
Private members can only be accessed or viewed from inside the class, public members can be accessed outside the class
10What is the difference between a struct and a class?
A struct has no methods
11Mutator
Can change the value of one or more data members. Setter, or set, functions are mutators, but it is NOT the case that all mutators are set functions. In the Date class, all the set functions are mutators, but increment() is a mutator as well.
12Facilitator
Provides a result based upon the value of one or more data members. Facilitators figure something out. In the Date class, leapYear() is one facilitator.
13Inspector
Sometimes referred to as an accessor function, an inspector merely furnishes the value of one or more data members. Get (or getter) functions are inspectors. In the Date class, getDate() is not a classic get function, as it furnishes multiple data members’ values, but it is certainly an inspector.
14What does the & operator provide when used?
The address to the variable it is used on