C++ Q&A GRADE A +
To overload the + operator, you would write a function named:
a. overload +
b. operator +
c. function +
d. operator.overload(+)
e. None of these - (correct answer)b. operator +
A(n) ________ operator can work with programmer-defined data types.
a. inline
b. unconditional
c. overloaded
d. undefined
e. None of these - (correct answer)c. overloaded
This is a special built-in pointer that is available to a class's member functions.
a. overloaded -> operator
b. this pointer
c. pointer
d. ~ destructor *ptr
e. None of these - (correct answer)b. this pointer
A(n) ___________ informs the compiler that a class will be declared later in the
program.
a. static function
b. private data member
c. forward declaration
To overload the + operator, you would write a function named:
a. overload +
b. operator +
c. function +
d. operator.overload(+)
e. None of these - (correct answer)b. operator +
A(n) ________ operator can work with programmer-defined data types.
a. inline
b. unconditional
c. overloaded
d. undefined
e. None of these - (correct answer)c. overloaded
This is a special built-in pointer that is available to a class's member functions.
a. overloaded -> operator
b. this pointer
c. pointer
d. ~ destructor *ptr
e. None of these - (correct answer)b. this pointer
A(n) ___________ informs the compiler that a class will be declared later in the
program.
a. static function
b. private data member
c. forward declaration