Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started