type.lib
Class SEstudent

java.lang.Object
  extended by type.lib.Student
      extended by type.lib.SEstudent
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.String>

public class SEstudent
extends Student

Provide services to maintain information about a SE (software engineering) student. The class encapsulates the same information and functionality as Student except for two differences: the ID is auto-assigned serially (starting from 200107001 and ending at 200107999), and the return of the toString method is prefixed by "SE".

Version:
7.0 - Summer 2010
Author:
H. Roumani, roumani@cse.yorku.ca
See Also:
Serialized Form

Field Summary
 
Fields inherited from class type.lib.Student
rng
 
Constructor Summary
SEstudent(java.lang.String name)
          Create a SE student having the given name, and assigns it a serial 3-digit ID prefixed by "200107" and an empty (fresh) record.
 
Method Summary
 java.lang.String toString()
          Return a string representation of this student.
 
Methods inherited from class type.lib.Student
equals, getCourseGrade, getFirstCourse, getGpa, getID, getName, getNextCourse, getRandom, getRandom, hashCode, iterator, setCourseGrade, setSeed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SEstudent

public SEstudent(java.lang.String name)
Create a SE student having the given name, and assigns it a serial 3-digit ID prefixed by "200107" and an empty (fresh) record.

Parameters:
name - the name of the SE student.
Method Detail

toString

public java.lang.String toString()
Return a string representation of this student.

Overrides:
toString in class Student
Returns:
the string "SE student: " followed by the student's name.


Java by Abstraction: A Client-View Approach