1.

Different kinds of the object involved in a class definition are ________(a) Public object, Private object, Protected object(b) Constructor object, Function object, Destructor object(c) Constructor object, Prototype object, Instance object(d) Instance method, Static object, Dynamic objectI got this question in an online interview.Question is taken from Augmentation of Classes topic in section Classes and Modules in JavaScript of JavaScript

Answer»

Correct option is (C) Constructor object, Prototype object, INSTANCE object

Easiest explanation: In JavaScript, there are three different objects involved in any class definition, and the properties of these three objects act like different kinds of class members namely, Constructor object, Prototype object, and Instance object.



Discussion

No Comment Found

Related InterviewSolutions