Write a program that implements the concept of inheritance F

Write a program that implements the concept of inheritance. For example: in the following scenario. Air university is inherited by both student and instructor class. In main () you will enter the information from each person who want to get admission/join Air University. If he is a student then will save all his information (e.g. gpa, enroll course, any paid fees) and so for instructor. Second step is to display all the information accordingly if user chooses a choice to show all students/teacher information.

Solution

In the below code the concept of inheritance is implemented just write a main class as you desired.
class AirUniversity
{
public:
int id();
};
class Student : public AirUniversity
{
public:
double gpa();
bool enroll(Course&);

bool pay(double dollars);
};
class Instructor : public AirUniversity
{
public: double grade(Artifact&);
bool teach(Course&);

bool getPaid(double dollars);
};

 Write a program that implements the concept of inheritance. For example: in the following scenario. Air university is inherited by both student and instructor

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site