Examveda
Examveda

If A is the superclass and B is the subclass, then subclass inherting the superclass can be represented as

A. B=inherit(A);

B. B=A.inherit();

C. B.prototype=inherit(A);

D. B.prototype=inherit(A.prototype);

Answer: Option C

Solution(By Examveda Team)

The subclass B inherits the prototype of the class A.

This Question Belongs to Javascript >> Classes And Modules

Join The Discussion

Related Questions on Classes and Modules