Question: Question 3: (20 marks) Given a base class with the following UML class diagram. Create a Person base class for the following. You have to

 Question 3: (20 marks) Given a base class with the following

Question 3: (20 marks) Given a base class with the following UML class diagram. Create a Person base class for the following. You have to create a NetBeans project for this question. Person - name: String + setName(String newname): void + getName( ): String + writeOutput ( ): void + equals (Person otherPerson): boolean You have to use the base class Person you have created to derive a class named as Student that can be used for the objects for students in a university. The employee record will inherit a student's name from the class person. A student record will contain the GPA score represented as a single value of type double, a starting date that gives the year that student started the course as a single value of type int, and a student identification number that is a value of type long. You have to provide your solution with the following guidelines. Provide the Person Base Class (2 marks) . You have to provide the derived Student class from Person class and take care of the following. Provide appropriate private instance variables for the information required in the derived class. (2 marks)

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 Mathematics Questions!