When be creating a new class from a existing class is called inheritance. existing class is callesd Base class.base class is also knows as Parent class.or A new class is was creating is called Derived class.this class is also knows as child class.
Type of Inheritance.
using namespace std;
cout<< endl<< id<<"\t"<< name<<"\t";
class Student: private Person
cout<<"Enter Course Name:";
cout<<"Enter Course Fee:";
cout<< course<<"\t"<< fee<< endl;
Copyright © 2022 Shineskill Software Pvt. Ltd., All rights reserved.