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;
A
a. BaseClass::operator=(rightSide);
Computer Science & Information Technology
You might also like to view...
A __________ access control scheme is one in which an entity may be granted access rights that permit the entity, by its own volition, to enable another entity to access some resource.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
If a device is slow to provide input or output, the OS uses ____, which are areas of memory that hold data from one device before it is transferred to another device.?
A. ?windows B. ?swap files C. ?clouds D. ?buffers
Computer Science & Information Technology