Question: Java programming: Using Abstract Consider you are designing simple employee details system. Create an abstract class EmployeeDetails that shows an employees Common details such as:

Java programming: Using Abstract

  • Consider you are designing simple employee details system.
  • Create an abstract class EmployeeDetails that shows an employees
    • Common details such as: name and ID.
    • Confidential details such as: salary and performance. (abstract method)
  • Create a class HR that implements the above abstract methods.
  • Your main should look like this:

HR hr = new HR("John", 1);

hr.commonEmpDetaills();

hr.confidentialDetails(6320.56, "good");

Output

Java programming: Using Abstract Consider you are designing simple employee details system.

Problems @ Javadoc Es Declaration HR [Java Application] C:\Prograi Name: John E_ID: 1 Salary: $6320.56 Performance: good

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!