Mar 24: Extending Classes
Learning Objectives
After today's class, you should be able to:
- Summarize uses of the keywords
extends
andsuper
. - Explain which methods can be called by a variable using polymorphism.
- Predict which method will actually run when polymorphism is involved.
Lesson Outline¶
Announcements [5 min]
- Exam 2 feedback on Gradescope
- Club Mixer – this Thu at 5pm
- Withdraw deadline on Friday 3/28
- Grade Weights – see formulas
Act10 [45 min]
- Activity 10: Inheritance
- Open the example code