Question: Suppose Corporation is a base class and PublicCorporation is a derived class. Also suppose that each class defines a head() member function, that ph is
Suppose Corporation is a base class and PublicCorporation is a derived class. Also suppose that each class defines a head() member function, that ph is a pointer to the Corporation type, and that ph is assigned the address of a PublicCorporation object. How is ph->head() interpreted if the base class defines head() as a
a. Regular nonvirtual method
b. Virtual method
Step by Step Solution
3.25 Rating (157 Votes )
There are 3 Steps involved in it
a It is interpreted as a regular nonvirtual ... View full answer
Get step-by-step solutions from verified subject matter experts
