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);
|