InterviewSolution
Saved Bookmarks
| 1. |
The object whose properties are inherited by all instances of the class, and properties whose values are functions behaving like instance methods of the class, is ________(a) Instance object(b) Constructor object(c) Destructor object(d) Prototype objectThe question was asked in my homework.My query is from Augmentation of Classes topic in chapter Classes and Modules in JavaScript of JavaScript |
|
Answer» RIGHT answer is (d) PROTOTYPE object For explanation: The PROPERTIES of the prototype object are inherited by all instances of the class, and properties whose values are functions behave LIKE instance methods of the class. |
|