Question: Please help to finish this code package cp213; import java.time. LocalDate; /** * Student class definition. * public class Student implements Comparable Student> { //

Please help to finish this code Please help to finish this code package cp213; import java.time. LocalDate; /**

package cp213; import java.time. LocalDate; /** * Student class definition. * public class Student implements Comparable Student> { // Attributes private LocalDate birthDate = null; private String forename = ""; private int id = 0; private String surname = ""; /** * Instantiates a Student object. @param id student ID number @param surname student surname @param forename name of forename @param birthDate birthDate in 'YYYY-MM-DD' format */ public Student /* parameters here */ ) { 11 assign attributes here return; } /* (non-Javadoc) * @see java.lang.object#toString() Creates a formatted string of student data. * @Override public String toString() { String string = ""; // your code here return string; /* (non-Javadoc) *@see java.lang.Comparable#compareTo (java.lang.Object) */ @Override public int compareTo(final Student target) { int result = 0; 11 your code here return result; } // getters and setters defined here }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a complete implementation of the Student class in Java This version of the class includes a constructor to initialize the attributes a toString ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!