rendered paste bodypublic class Student
{
//instance variables
private String name;
private String courseCode;
private int studentID;
public Student(String aName, String aCourse, int idNumber)
{
this.name = aName;
this.courseCode = aCourse;
this.studentID = idNumber;
}
/**
* * Displays to the standard output the receiver's details.
* * */
private Student displayStudent()
{
return this.name;
}
/**
* * Displays to the standard output the receiver's name.
* * */
private Student displayName()
{
return this.name;
}
/**
* * Displays to the standard output the receiver's course.
* * */
private Student displayCourse()
{
return this.courseCode;
}
/**
* * * Displays to the standard output the receiver's ID.
* * * * * */
private Student displayID()
{
return this.studentID;
}
}