Sub Classes

Sub Classes

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explores ES6 inheritance, focusing on creating subclasses. It begins with an overview of ES6 classes and inheritance, followed by building a basic Person class with a constructor. The tutorial then extends the Person class to create a Customer class, demonstrating how to use the 'super' function to call the parent class constructor. It covers instantiating a Customer and using inherited methods, and concludes with creating static methods and understanding the limitations of inheritance.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

How do you instantiate a new customer object and what information do you need to provide?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the significance of the 'static' keyword in the context of the 'customer' class?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What happens if you try to call a method from the 'customer' class on the 'person' class?

Evaluate responses using AI:

OFF