Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write java code : assume that you have access to a class called StudentIDClass w

ID: 3631990 • Letter: W

Question

write java code :
assume that you have access to a class called StudentIDClass which is used to hold information describing a university student's student identity number. Similarly you may assume access to DateClass (as specified in the DataClass example and discuss in the lectures). You may assume that both classes have all the features emphasised in the worksheets. Design a class called StudentClass. Objects of this class are used to describe students in a University. They are responsible for the following information:
• studentID: a StudentIDClass object describing the student's identity number.
• Date of Birth: A DateClass object describing the student's dat of birth.
• name: A character string containing the student's name.
Two StudentClass objects are considered equal if and only if they have the same date of birth of student identity number. Your design must include all of the good features that have been re-enforced in the worksheet exercises and the assignment.
Hint: you may use one mutator for updating all of the state information if you wish. Also you may omit the alternate #1 constructor and the toString accessor

Explanation / Answer

public class StudentClass{

private String name; private StudentIDClass ID; private DateClass birthday;

public StudentClass(String name, StudentIDClass ID, DateClass birthday){

this.name = name; this.ID =ID; this.birthday = birthday;

}

public boolean equals(StudentClass student){

if(this.ID.equals(student.ID) && this.birthday.equals(student.birthday)){

return true;

}

return false;

}

#This is a basic layout for the basic operations. Everything else depends on the code you have already made/been given and what exactly you are directed to do. Hope it helps anyways. Best of luck.