Chapter

Example

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How can adding an addCourse method make a Student object more flexible?

    "Alternatively, we could make our design a bit more flexible by allowing the construction of a Student instance without having to provide a course schedule. Instead, we could add a method that allowed

  2. What does the completed Java Student class example contain?

    "We present the full and completed Student class in Code Sample 34.1.\n\npackage unl.cse;\n\npublic class Student {\n\nprivate String firstName;\n\nprivate String lastName;\n\nprivate int id;\n\npriva

Example | ComputerScienceOne | Bifalgorithm | Bifalgorithm