Overriding Methods

Methods within a child class can override the parent class, simply by redefining your own version.

 

 

The parent's display method on line 5 is overridden in the child's redefinition on line 13:

Save & refresh browser:

Vanessa Miasma "Legendary" NYC Goth DJ!

Leave a Reply