MCQOPTIONS
Saved Bookmarks
| 1. |
var obj = new Fun();obj.constructor === Fun6.If X is the superclass and Y is the subclass, then subclass inheriting the superclass can be represented as _________ |
| A. | Y=inherit(X); |
| B. | Y=X.inherit(); |
| C. | Y.prototype=inherit(X); |
| D. | Y.prototype=inherit(X.prototype); |
| Answer» D. Y.prototype=inherit(X.prototype); | |