Question: B1. Given the following classes, answer the below questions. 1. Person (abstract class) that has the following: Data Fields: private String name, private String address

 B1. Given the following classes, answer the below questions. 1. Person

(abstract class) that has the following: Data Fields: private String name, private

B1. Given the following classes, answer the below questions. 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. 2. 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. 3. 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. 4. Graduate Student(extend the class Student) that has the following: Data Fields: - Constructor: Constructor to create a Graduate Student object with specified name, address, ID, and grade. Methods: - * Design UML diagram for the above classes. Write the code only for class Person and Class Student. B2. Write a JavaFX program to display the given output. (Note: Part of the program is given, write only the remaining) X 1 Java Database C++ MySQL Oracle Labs DDL DML DCL import javafx.application. Application; import javafx.scene. Scene; import javafx.scene.control. Menu; import javafx.scene.control.MenuBar; import javafx.scene.control.MenuItem; import javafx.scene.layout.BorderPane; import javafx.scene.paint.Color; import javafx.stage.Stage

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!