Skip to content

24 ways to impress your friends

Vote down?

Daz

Here’s a useful link which explains all about using private, public and privaliged methods and variables, which I found seriously useful. The only thing you can’t really do, is have a protected method/variable.

http://phrogz.net/JS/Classes/OOPinJS.html

Enjoy!