Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     B=inherit(A);

    B.

     B=A.inherit();

    C.

     B.prototype=inherit(A);

    D.

     B.prototype=inherit(A.prototype);

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The subclass B inherits the prototype of the class A.


Be The First To Comment