Reiter

In this part of the lecture, we learn about Classes and Objects in programming.

This chapter has the following sections:
  • Set up the IDE workspace and import the project files
  • Introduction to the concept of a Class and a first example
  • "Function" vs "Method" and attribute scopes
  • Constructor Methods: initialize an Object instance
  • More details on attributes and scopes
  • Example "Car" Class: Import Classes from different files
  • Extending "Car" Class: parent and child Classes
  • Example "Dog" Class: pitfalls in attribute scope
  • Example "Robot" Class: How to modify Attribute visibility
  • Abstraction: require Methods to be implemented in extending Classes
  • Inheritance: parent and child Classes, extend and inherit
  • Polymorphism: same names for parent and child Classes
This is the code used in the videos. If you want to code along to the video tutorials or play around with the code yourself, refer to the first chapter on how to set up your workspace and import the code as a project.
Example Code as used in the Videos
These are the slides for this chapter.
A presentation on Objects and Classes in Python.