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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here