Write java program implementing real-life inheritance case


Assignment Task:

The goal of this assignment is to guide student through the important concept of inheritance in Java object-oriented programming. To suitably accomplish this target, we ask you to follow the following scenarios.

Write Java programs implementing a real-life case study of inheritance. For example, the Human Resource Management Department at Emirates College of Technology has its Java software including the superclass Employee that can be Faculty or Staff. Each Employee has a unique identifier, Full Name, seniority, etc. It has also some behaviors such as Salary(), Vacation(), etc. The subclass Faculty has some particular attributes such as Degree, Position, Specialty, etc. The subclass Staff has also some specific attributes such as Administrative position, extra bonus, etc. Each subclass should override one or many superclass behaviors.

We note here that student cannot use neither this example nor any example from the class or lab exercises already done, but he/she should suggest another different example with different code.

Student is asked to answer the following questions:

1) Create a superclass having the following components:

a. Define at least three attributes having different data types.

b. Define a constructor with parameters to initialize the objects.

c. Define Get() and Set() methods for each superclass attribute.

d. Define at least one method for displaying information in the end user screen.

e. Define at least one method for calculus and display results in the end user screen.

2) Create a subclass that inherits from the superclass with the following components:

a. Attributes:

  • Inherit the previous attributes from the superclass.
  • Define at least another new attribute specific for this subclass.

b. Define a constructor with parameters to initialize the objects. The first set of parameters should be assessed from the superclass.

c. Define Get() and Set() methods for the new subclass attribute.

d. Override the superclass method of displaying information in the end user screen.

e. Override the superclass method of calculus and display results in the end user screen.

3) Create a program class including the main() method with the following behaviors:

a. Create an object from the superclass.

b. The superclass object should call the displaying and calculus methods.

c. Create an object from the subclass.

d. The subclass object should call the overridden displaying and calculus methods.

All the tutors of our Object-Oriented Programming Assignment Help service work round the clock, so that, you can resolved from all your queries and qualms anytime and from anywhere, without any trouble.

Tags: Object-Oriented Programming Assignment Help, Object-Oriented Programming Homework Help, Object-Oriented Programming Coursework, Object-Oriented Programming Solved Assignments 

Attachment:- Object-Oriented Programming.rar

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write java program implementing real-life inheritance case
Reference No:- TGS03053611

Expected delivery within 24 Hours