OOP Studio Ages 9-15
Inheritance Challenge
Connect a magic wand to its parent class, then prove it inherited one method and added another.
1. Connect
Choose which parent class the MagicWand should extend.
2. Add
Choose the new method that belongs only to MagicWand.
3. Test
Run both methods and watch the wand activate.
Complete the MagicWand recipe.
Parent class: Tool
use()Every tool can be used.
Can this child use both methods?
inherited use()new castSpell()
Build the child class, then run the test.
A child gets parent methods and can add methods of its own.
Inheritance challenge complete!
MagicWand inherited use() from Tool and added castSpell().