Question: This is a pretty straight forward assignment. I am mostly uncertain on how to do both the methods listed below but I would like to
This is a pretty straight forward assignment.
I am mostly uncertain on how to do both the methods listed below but I would like to see this as wole:
compareTo(Student) - Integer
equals(Student) - Boolean
Create class called Student that has the following attributes:
Note:
This assignment is going over chapter 13, abstract classes and interfaces
This class should implement the Comparable interface
For myself: please provide a test example so maybe i can further understand how this all works together!
| Student |
| String - FirstName |
| String - LastName |
| String - Major |
| String - Minor |
| Integer - UIN |
| Double - GPA |
| Student() |
| Student(FirstName, LastName, Major, Minor, UIN, GPA) |
| getFirstName() - String |
| setFirstName(String) - void |
| getLastName() - String |
| setLastName(String) - void |
| getMajor() - String |
| setMajor(String) - void |
| getMinor() - String |
| setMinor(String) - void |
| getUIN() - Integer |
| setUIN(Integer) - void |
| getGPA() - Double |
| setGPA(Double) - void |
| toString() - String |
| compareTo(Student) - Integer |
| equals(Student) - Boolean |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
