Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 7: Advanced JavaScript Object Handling!

Instruction

Inheritance

Inheritance: Sharing and Extending Behaviors

Inheritance allows us to create a new class that is based on an existing class. This new class (the subclass) inherits properties and methods from the existing class (the superclass), but it can also have its own additional properties and methods.

Consider that in our school model, we also want to represent students. Students, unlike profes...