All pastes #425294 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-05 12:29 UTC
rendered paste body
public 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;
       }
}