Question: Declare a class Fruits with any two data Members and two Member functions. Derive 2 class Mango and Orange from this Fruits class with one
Declare a class "Fruits" with any two data Members and two Member functions. Derive 2 class Mango and Orange from this Fruits class with one data Member and Member function.
Create two Pointer objects of Fruits class and convert one to the Mango Class Pointer Object and One to the Orange Class Pointer Object through explicit Cast
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
