SHSubjectHub

Method Overriding and Polymorphism (JavaScript)

OOPA-levelLesson packSubscription

About this resource

Learn how to override methods in JavaScript by redefining them in a subclass, how to extend parent behaviour with super.method(), and how polymorphism works at runtime.

11 slides.

Lesson outline

  1. Overriding in JavaScript
  2. Method Overriding — Just Redefine It
  3. Extending with `super.method()`
  4. Polymorphism in JavaScript
  5. Polymorphism in Action: Live Demo
  6. UML: Shape Hierarchy
  7. Trace: Which Method Runs?
  8. Coding Practice: Shapes + Employees
  9. Lesson Summary
Unit bundleUnit 3B · Method Overriding and Polymorphism
Part of: Unit 3B · Method Overriding and Polymorphism: the whole unitEvery resource in the unit in one zip.

More from Unit 3B · Method Overriding and Polymorphism