Question: 3G lis. 9:-1 4 : // Inheritance in C++ a) Inheritance is representative of a(n) relationship. A Rectangle object demonstrates this relationship because it can
3G lis. 9:-1 4 : // Inheritance in C++ a) Inheritance is representative of a(n) relationship. A Rectangle object demonstrates this relationship because it can be treated as a Shape object. b) When an object of a derived class is instantiated, the base class' is called implicitly or explicitly to initialize the data members of the base-class in the derived-class object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
