Computer Science, asked by mohsin095, 7 months ago

Write a program in C++ to create a class Grand Father, inherit a class Father from it. After that inherit two classes myself and my_sister from class father. Every class should have data members name, age, eye color and hair color. Eye and hair color should be same of everybody. Input every data members from user and display all of the information using member function.

Answers

Answered by sp6559568
1

Answer:

If we create a class Vehicle and write these three functions in it and inherit ... Sub class inheriting from Base Class(Parent) ... An object of class child has all data members

Similar questions