Activity 01
Format Name: Polymorphism Playground
Students create a base class (e.g., 'Animal') with a method (e.g., 'makeSound'). Then, they create subclasses (e.g., 'Dog', 'Cat', 'Cow') that override the 'makeSound' method. Finally, they use a list or array of the base class type to store objects of the subclasses and call the 'makeSound' method on each, observing the different outputs.
Explain how polymorphism allows a single interface to represent different underlying forms.
Facilitation TipDuring Build It: Polymorphic Shape Renderer, circulate and ask each pair to explain how their Circle and Rectangle classes are responding to the same draw() call despite their differences.