Question: answer using c++ Module 7: Classes Continued Questions Question 1 In what order are class constructors and class destructors called when a derived class object

answer using c++
Module 7: Classes Continued Questions Question 1 In what order are class constructors and class destructors called when a derived class object is created and deleted? Question 2 Can you assign the address of an object of a derived class to a pointer to the base class? Can you assign the address of an object of a base class to a pointer to the derived class? Question 3 Suppose Corporation is a base class and PublicCorporation is a derived class. Also suppose that each class defines a head0 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->head0 interpreted if the base class defines head0 as a a. Regular nonvirtual method b. Virtual method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
