Write java programs implement real-life case of inheritance


Assignment Instructions: You are required to accomplish your work individually.

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.

Note - After running your Java code using NetBeans software, copy your programs in this word file, and then provide a screenshot of your code output. If you cannot achieve the output of your execution, you provide only the code without the screenshot.

Our Object-Oriented Programming Assignment Help service always take care of your pockets and provide you the best quality work that will never secure less than an A++ in your academics.

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

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write java programs implement real-life case of inheritance
Reference No:- TGS03053224

Expected delivery within 24 Hours