0 votes
in JavaScript by
When a class B can extend another class A, we say that:

a) A is the superclass and B is the subclass

b) B is the superclass and A is the subclass

c) Both A and B are the superclass

d) Both A and B are the subclass

1 Answer

0 votes
by

Answer:-  A

Reason: Superclass is the class from which subclasses are defined) Subclasses are also called the extension of the superclass. In the above scenario, there will be a superclass and B is collas.

Related questions

0 votes
asked Mar 22, 2021 in JavaScript by Robindeniel
0 votes
asked Dec 1, 2022 in JavaScript by john ganales
...