Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Programming questions

Question

Explain the difference between a flag and a pennant.

Answered: 1 week ago