Chapter
Example
From ComputerScienceOne by Dr Chris Bourke
Concepts
- How can a Student object become more flexible?
"A more flexible approach might be to allow the construction of a Student instance without having to provide a course schedule. Instead, we could add a method that allowed the outside code to add a co
- What does the completed PHP Student class look like?
"We present the full and completed Student class in Code Sample 45.1.\n\n1 <?php\n\n2 class Student {\n\n3\n\n4 private $firstName;\n\n5 private $lastName;\n\n6 private $id;\n\n7 private $gpa;\n\n8 pr