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
Methods
Overriding Methods
Sometimes a programmer wants to change the functions a subclass inherits. Mint is a subclass that has the same functionality as Plant, except for one function. A subclass can override a superclass method by defining a method with the same name as the superclass method.
Checkpoint: Overriding a superclass method
Concepts in Practice: Overriding Methods
1. Suppose a pro...