Object Oriented Programming207810 marksSingle-level inheritance
Create a class Employee with private data members Eid, Ename, and Salary. Include public member functions read and display value of data members. Derive a class names typist from above class. The class should contain a private data members. Finally create two objects of typist class and read and dis
Create a class Employee with private data members Eid, Ename, and Salary. Include public member functions read and display value of data members. Derive a class names typist from above class. The class should contain a private data members. Finally create two objects of typist class and read and display their values.[10]
This problem demonstrates Inheritance in Object-Oriented Programming (OOP): - Base Class: Employee (with private members: Eid, Ename, Salary) - Derived Class: Typist (inherits from Employee, adds its own private member) - Two objects of Typist are created, and values are read and displayed. --- -...