Skip to main content

Home/ javascript/ Group items tagged oop

Rss Feed Group items tagged

Javier Neira

Is JavaScript object-oriented? - Stack Overflow - 1 views

  • Well this is broken. Since the function assigned to getValue is no longer in scope with _value it can't access it. We would need to promote _value to an attribute of this but that would make it accessable outside of the control of code written for the class, hence encapsulation is broken.
1 - 1 of 1
Showing 20 items per page