Question: Object Oriented Programming 6. Write a Java class for representing students. The constructor should take a name, such as Taylor Swift and college year number
Object Oriented Programming 6. Write a Java class for representing students. The constructor should take a name, such as Taylor Swift and college year number (1 for firstyear, 2 for sophomore, 3 for junior, and 4 for senior). Initially, students should start out in the "relaxed" state. The class should have two additional methods: advance that will move the student's year to the next year, and prepare that will put the student in the "study" state. Create two instances of your student class (13 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
