项目作者: Omkar3114
项目描述 :
Create a class named „Worker‟ having the following members: Sname, Sage, Sphone number ,Saddress, Ssalary.It also has a method named 'displaySalary' which displays the salary of the members. Two classes 'Employee' and 'Manager' inherit the „Worker‟ class. The 'Employee' and 'Manager' classes have data members 'Work specialization' and 'department' respectively. Now, assign name, age, phone number, address and salary to an employee and a manager by making an object of both of these classes and print the same.
高级语言:
项目地址: git://github.com/Omkar3114/Inheritance.git