I need help with this Java program over a Student class program shown in the image below: The Student class will extend the Person class and contain the following additional information. Student ID // Combination of 10 numbers and uppercase letters (This field will be immutable) University name // Credits enrolled // 19 Qualifies for instate rate // yes or no Late fee assessed // yes or no Food Option Choice //A top plan, B middle plan, C bottom plan, D no plan Health Option Choice // yes or no The Student class will implement getter and setter methods for each field variable. It will also include toString(), compareTo(), and equals() methods. The equals(Student):boolean method will return true if the Student object’s and the argument Student object’s Name and student ID are equal. The compareTo(Student):int - returns -1 when the calling object should precede the argument object, 0 when the calling object and argument objects are considered identical, 1 when the calling object should come after the argument object. The order of precedence is Person, ID.
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
I need help with this Java program over a Student class program shown in the image below:
The Student class will extend the Person class and contain the following additional information.
Student ID // Combination of 10 numbers and uppercase letters (This field will be immutable)
University name //
Credits enrolled // 19
Qualifies for instate rate // yes or no
Late fee assessed // yes or no
Food Option Choice //A top plan, B middle plan, C bottom plan, D no plan
Health Option Choice // yes or no
The Student class will implement getter and setter methods for each field variable. It will also include toString(),
compareTo(), and equals() methods. The equals(Student):boolean method will return true if the Student object’s and
the argument Student object’s Name and student ID are equal. The compareTo(Student):int - returns -1 when the
calling object should precede the argument object, 0 when the calling object and argument objects are considered
identical, 1 when the calling object should come after the argument object. The order of precedence is Person, ID.


Trending now
This is a popular solution!
Step by step
Solved in 3 steps









