All pastes #425296 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-05 12:34 UTC
rendered paste body
public class Student
{
   //instance variables
    private Student name;
    private Student courseCode;
    private Student studentID;

   public Student(Student aName, Student aCourse, Student 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;
       }
}