Question: Answer all the questions: 7 B1. Given the following classes, answer the below questions. 1. Person (abstract class) that has the following: Data Fields: private

 Answer all the questions: 7 B1. Given the following classes, answer
the below questions. 1. Person (abstract class) that has the following: Data

Answer all the questions: 7 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, D, and grade. Methods: - Design UML diagram for the above classes. Write the code only for class Person and Class Student. x x Ave. Av Font 2 Paragraph B2. Write a JavaFX program to display the given output (Note: Part of the program is given, write only the remaining) 75 X ww- DOC DM DCE import javafx application Application import javafx scene Scene import javax.scene.control. Mesu; import javafx scene control MenuBar, import javax.scene.control Menuitem import javax scene layout Border Pane; import javafx scene paint Color, import javax.stage.Stage: public class exam extends Application public void start(Stage primaryStage) { M. Complete the code below Scene scene -new Scene(root, 300, 250, Color WHITE). primaryStage set Scenescene), primaryStage show.) public static void main(String[] args) { launch(args)

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!