This link has been bookmarked by 73 people . It was first bookmarked on 23 May 2006, by Keita Yamaguchi.
-
Julian KnightPublic, Private and Privileged methods and variables
-
Ernesto KrsulovicJavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can hav
-
-
Private methods cannot be called by public methods. To make
private methods useful, we need to introduce a privileged method. -
A privileged method is able to access the private variables
and methods, and is itself accessible to the public methods and the
outside. It is possible to delete or replace a privileged method, but
it is not possible to alter it, or to force it to give up its
secrets. - 1 more annotations...
-
-
Ralph YoungSome believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can have private members. Here's how.
-
Benx ShenJavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can have private members.
-
-
Private methods are inner functions of
the constructor -
A privileged method is able to access the private variables
and methods, and is itself accessible to the public methods and the
outside. It is possible to delete or replace a privileged method, but
it is not possible to alter it, or to force it to give up its
secrets. - 1 more annotations...
-
-
Gary BurgeJavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can hav
-
Joshua ArestyAn explanation of how to use scope in JavaScript. This document demonstrates how it is possible to create public, private, and protected functions in JavaScript.
-
Timothy WoodJavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can ...
-
-
JavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can have private members. Here's how
-
-
jcartledgeJavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can hav
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.