Changes between Version 2 and Version 3 of AccessModifiers
- Timestamp:
- 03/25/10 11:36:30 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AccessModifiers
v2 v3 7 7 '''virtual, public''' is default for methods[[BR]] 8 8 9 '''protected''' is default for class/instance variables with '''_''' prefix on name[[BR]] 10 '''public''' is default for variables without '''_''' prefix 9 '''protected''' is default for methods and class/instance variables with '''_''' prefix on name[[BR]] 10 '''private''' is default for methods and class/instance variables with '''_ _''' (double underscore) prefix on name[[BR]] 11 '''public''' is default for variables without any '''_''' prefix 11 12 12 13 Valid 'is' keywords are … … 20 21 Separate multiple modifiers with ''',''' e.g .... is protected, override 21 22 23 == Notes and Examples == 24 22 25 is fake:: 23 26 temporary for defining class/method api without implementation … … 32 35 33 36 is shared:: 34 on instance variable makes it a class variable 35 (same as static (in Java)) 37 on instance variable makes it a class variable. 38 on method makes it a class method 39 (effect is same as static (in C#, Java)) 36 40 37 41 is public/protected/private:: 38 on class or method(s)42 on class, instance variable or method(s) 39 43 adjust visibility (default public) 40 44 41 45 is abstract:: 42 46 on class or method(s) 43 Is a Template for subclasses to provide implementation of.47 Specifies item as a template for subclasses to provide implementation of. 44 48 45 49 is virtual:: … … 51 55 is override:: 52 56 Specifies that this method implementation is a redefinition of an existing(shadowed virtual or abstract) method defined in a superclass 57 53 58 is new:: 54 59 Designate that this method is a new one that hides the one that would have