25.6k views
17 votes
11) A single inheritance model means: * A) A class can only have one parent class (superclass) B) A class can only have one child class (subclass) C) A class cannot have a parent class (superclass) D) A class cannot have a child class (subclass) E) A class can have multiple parent classes (superclasses)

User TopChef
by
4.7k points

1 Answer

5 votes

Answer:

The correct answer is Option A (A class can only have one parent class (superclass))

Step-by-step explanation:

The inheritance model is a computer program used in Javascript. This model aimed to make code that has been programmed already still relevant to be used again at any time minimizing errors associated with typing a new code. Inheritance makes the attributes of a particular class valid while still possible to use the attributes of another class.

A child class (subclass) inherits from the parent class (superclass). So, it is a single inheritance once the child class (subclass) inherits from a single parent class (superclass) creating a subclass. A parent class (superclass) is the class that gives its attributes for inheritance.

User Brodney
by
5.4k points