Object example with 2 included classes
Back to example directory |
Phps formatted source |
Ascii source |
Formatted source of the included class |
Source of the included class
The following functions of the class "Course" are meant for public use:
Course (name) name is a string
makeStudent (id, name) id and name are strings
addScore (id, score) is is a string, score is an number
displayScores ()
The reused "Students" class from the student-class.php
exemple is not supposed to be used by a programmer/user of this class.
Notes pour le cours Staf14 -Bases techniques des systèmes d'information et de communication
- Grade obtained by Nathalie Morand: 4.5
- Grade obtained by Gilles Jules: 2.75
- Grade obtained by Stephane Durand: 5.9
Average = 4.3833333333333