1.public :
These properties are the default when you are declaring a variable using the var or public keyword, or when a variable is implicitly declared the first time it is used.

These properties and methods can be referenced only by the object’s class methods and those of any subclasses.

3. private:
These members can be referenced only by methods within the same class-not by subclasses.

Translate »