Vidyalelo
JavaScript · Q12

Classes And Modules

Programming · JavaScript · question 12

Q12

The properties of the objects act like different kinds of class members. They are

A.
Public object, Private object, Protected object
B.
Constructor object, Function object, Destructor object
C.
Constructor object, Prototype object, Instance object
Answer
D.
Instance method, Static object, Dynamic object

Answer: Option C

Solution

Answer: Option C
Solution:
In JavaScript, there are three different objects involved inany class definition, and the properties of these three objects act like different kinds of class members namely, Constructor object, Prototype object, and Instance object.