Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. The meaning for Augmenting classes is that

  2. A.

     objects inherit prototype properties even in dynamic state

    B.

     objects inherit prototype properties only in dynamic state

    C.

     objects inherit prototype properties in static state

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    JavaScript’s prototype-based inheritance mechanism is dynamic: an object inherits properties from its prototype, even if the prototype changes after the object is created. This means that we can augment JavaScript classes simply by adding new methods to their prototype objects.


Be The First To Comment