Multiple Choice
Which of the following would correctly call the base class BaseClass) assignment operator from the derived class DerivedClass) assignment operator?
DerivedClass& DerivedClass::operator =const DerivedClass& rightSide)
{
//what goes here?
}
A) BaseClass::operator=rightSide) ;
B) leftSide=rightSide;
C) rightSide=BaseClass.rightSide;
D) DerivedClass::rightSide=BaseClass::rightSide;
Correct Answer:

Verified
Correct Answer:
Verified
Q21: You should make a function a virtual
Q22: If you define a function in the
Q23: A constructor of the base class is
Q24: The constructor for a class is inherited.
Q25: All member functions in a base class
Q27: The derived class may define variables and
Q28: A base class pointer variable can point
Q29: When deriving a class, you should<br>A) list
Q30: Give a base class with at least
Q31: Which is the correct way to tell