Question: Q2. Develop an Object oriented program in C++ including: A base class Employee consists of : firstname , and lastname as data members a constructor
Q2. Develop an Object oriented program in C++ including:
- A base class Employee consists of :
- firstname , and lastname as data members
- a constructor (to initialize the data members), a destructor (to clean up storage of data members) and print() (to print employee information) as function members.
- A derived class Academics" consists of:
- credithours as data member
- double getpay() as a function member
- A main() function to test the base class, the derived class and their members
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
