|
Where must the const keyword be placed to ensure that a member,function
does not change any member variables?
|
A |
A tilde (~) indicates that a member function is a destructor.
|
|
What operator performs the function of freeing the manually allocated
memory?
|
B |
The this keyword is a pointer to the current object.
|
|
What special syntax indicates that a member function is a destructor?
|
C |
The assignment operator must be overloaded in order to allow statements
like the one shown in the question.
|
|
When is a class's destructor called?
|
D |
I/O operators can be overloaded because streams can be passed as
parameters to functions.
|
|
What operator must be overloaded in order for the string class to allow
statements such as the one shown below?
StringA = StringB = StringC;
|
E |
The delete operator manually deallocates memory.
|
|
What property of streams allows the 1/0 operators to be overloaded?
|
F |
The const keyword must be placed after the parenthesis of a member
function to prevent any member variables from being changed.
|
|
What keyword serves as a pointer to the current object?
|
G |
The destructor is called automatically when the object has completed its
work.
|