Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 15: Understanding and Implementing Inheritance in Python: Concepts and Practices!

Instruction

Attribute access

Creating a Simple Subclass

Subclasses have access to the attributes inherited from the superclass. When the subclass's __init__() isn't explicitly defined, the superclass's __init__() method is called. Accessing both types of attributes uses the same syntax.

Checkpoint: Defining a simple subclass

<iframe src="https://drive.google.com/file/d/1qpi6ftPGXRYHYzEX5RWA-cm5GIkmudVG/...