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
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
Math,
4 months ago
Math,
4 months ago
English,
4 months ago
Business Studies,
8 months ago
Biology,
11 months ago
Environmental Sciences,
11 months ago
English,
11 months ago