The ultimate goal of this assignment is to illustrate the use of object-oriented concepts of encapsulation, and inheritance to create hierarchies of related classes.
Using NetBeans IDE, write your own Java program to solve a real-life example. An example of that would be a Law Firm Employee program to manage the employee’s salary, vacation time, and responsibilities.
The program included a super class called Employee and various sub-classes which inherit all of the super class’s behavior and override some methods. Each type of employee extends the common base class Employee and has methods such as get Vacation Days, get Vacation Form, get Salary, etc..
The achieved program should not be the example mentioned above, nor an example from the class or lab exercises which been already completed. Your program will consist of 3 distinct parts:
PART I: A Superclass to include the following:
1. A minimum of 3 attributes with diverse data types defined.
2. A constructor defined
3. At least one Set() method defined
4. At least one Get() method defined
5. At least one method of calculation defined
6. At least one method of displaying
PART II: At least one Subclass to include the following:
1. Attributes that … Read the rest
The post NetBeans IDE, Java program – Manage employee’s salary appeared first on Tedext.