Back to Inheritance Builder
OOP Studio Ages 9-15

Inheritance Challenge

Connect a magic wand to its parent class, then prove it inherited one method and added another.

10-15 min Ages 9-15 OOP Challenge JavaScript
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.

Build the Child Class

Complete the MagicWand recipe.

Parent class: Tooluse()Every tool can be used.
MagicWand should...
Add one special method...
Magic Test

Can this child use both methods?

Wizard holding an inactive magic wand
inherited use()new castSpell()
Build the child class, then run the test.

A child gets parent methods and can add methods of its own.