Weeks 13: Classes and Objects

Week 13 Goals

  • Wrap up recursion

  • Learn about classes

  • Understand the connection between classes and objects (instances)

  • Understand key parts of defining a class: member variables, methods, constructor, accessors/getters, mutators/setters

  • Define classes

  • Be able to write a Python class from scratch given an specification in English

Week 13 Files

  • employee.py: defines an Employee class

  • employee_test.py: code that imports and uses the Employee class

  • student.py: practcice defining a Student class