Home | 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).
|
|||
|
|||
string |
|
||
int |
|
||
boolean |
|
||
string |
|
||
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)".
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 30 15:34:21 2012 | http://epydoc.sourceforge.net |