Skip to main content
Version: Next

Review for Quiz 3

Properties

It is recommended to review these topics:

  • @property and *.setter decorators
  • Accessing attributes named using _ or __

Inheritance and abstract methods

It is recommended to review these topics:

  • What @abstractmethod does

  • Rules for when you can instantiate a class

  • What is inherited by subclasses (methods and attributes that aren't named with two underscores)

  • Overwriting inherited methods

  • Calling a superclass's method or constructor

Coupling / cohesion / encapsulation

It is recommended to review these topics:

  • Identifying and mitigating coupling between two or more classes
  • Identifying and mitigating lack of cohesion in a class
  • How to further enhance encapsulation in an existing class