Computer Science, asked by shilpapr, 5 months ago

write a java program which creates a class name 'emoloyee' having the following members : name,age,phone number, address,salary.it also has a method name print salary which prints the salary of the employee.two classes officer and manager inherits from employee Class. the officer and manager classes have data members specialization and department respectively.now assign name , age,phone number, address.and salary to an officer and a manager by making an object of both of these classes print the same​

Answers

Answered by raginikumari86
3

Explanation:

follow this example and get e same result of your question

Attachments:
Similar questions