eEcho blog

is een halte van de gedachte

Inheritance and Encapsulation JavaScript

If a class with true private members is subclassed, the privileged methods will be passed
on, since they are publicly accessible. These will allow access to the private attributes indirectly,
but none of the subclass’s instance methods will have direct access to these private attributes.
Private members can only be accessed through these already established privileged methods;
new ones cannot be added in the subclass.

Comments are closed.

Home | info@eecho.info | Voorwaarden | Blog