Classes and Modules on JavaScript related Questions and Answers


Question :   If A is the superclass and B is the subclass, then subclass inheriting the superclass can be represented as _________
1. B=inherit(A);
2. B=A.inherit();
3. B.prototype=inherit(A);
4. B.prototype=inherit(A.prototype);
Answer :   3 - B.prototype=inherit(A);  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter