Question: java Given the following classes, answer the all below questions pleas Person (abstract class) that has the following: Data Fields: private String name, private String

java

Given the following classes, answer the all below questions pleas

  1. Person (abstract class) that has the following:

Data Fields: private String name, private String address

Constructor: Constructor to create a Person object with specified name and address.

Methods: Accessor and mutator methods for all data fields.

  1. Student (extend the class Person) that has the following:

Data Fields: private int ID, private double grade

Constructor: Constructor to create a Student object with specified name, address, ID & grade.

Methods: Accessor and mutator methods for all data fields.

  1. Director (extend the class Person) that has the following:

Data Fields: private double salary.

Constructor: Constructor to create a Director object with specified name, address, and salary.

Methods: Accessor and mutator methods for salary data field.

  1. GraduateStudent(extend the class Student) that has the following:

Data Fields: -

Constructor: Constructor to create a GraduateStudent object with specified name,

address, ID, and grade.

Methods: -

  1. Design UML diagram for the above classes.
  2. Write the code only for class Person and Class Student.

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!