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);
Correct Answer: B.prototype=inherit(A);
The subclass B inherits the prototype of the class A.