Write a java program Write a class named Employee with name and salary as private data fields. Add a constructor with both parameters. Write a class named Manager which unherits the Employee class....


Write a java program


Write a class named Employee with name and salary as private data fields.


Add a constructor with both parameters. Write a class named Manager which unherits the Employee class.


Add an instance variable, named department, of type String and 15 private. Add a constructor in the subclass class and a toString () method that prints the manager's name, department, and salary [Hint: Add a tastanel) method in the super class as well].


Create objects of Manager and Employee dass



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here