Trees | Indices | Help |
|
---|
|
object --+ | Student
The class Student
represents students in an excursion
signup system. Each student is characterized by its name and "year
of study" (i.e., 1 for freshmen, 2 for sophomores, etc.). A student
object is immutable after creation (we don't need to change, say, the
year of study in the context of this program).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Creates a new student with the given name and year of study.
|
Returns the student's name.
|
Returns the student's year of study.
|
Determines if this student is "older", in terms of years studied, than another, given student.
|
Returns a string description of the student. The description is of the form "StudentName (YearOfStudy)". E.g. "Bob (3)".
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Aug 26 16:03:36 2011 | http://epydoc.sourceforge.net |