[Solved] : Question 144415

Create a class named ‘Employee’ having the following members:
Data members
1 – Name
2 – Age 3 – Phone number
4 – Address 5 – Salary
it also has a method named printSalary () which prints the salary of theemployee
,Two classes ‘Employee’ and ‘Manager’ inherits the ‘Member’ class. The ‘Employee’ and ‘Manager’ classes have data members ‘specialization’ and ‘department’ respectively. Now,
(a)- Assign name, age, phone number, city and salary to an employee and a manager by making an object of both of these classes and print the same.


Expert Answer


Answer to : Question 144415

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?