Wiki

Changes between Version 2 and Version 3 of AccessModifiers

Show
Ignore:
Timestamp:
03/25/10 11:36:30 (14 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AccessModifiers

    v2 v3  
    77    '''virtual, public''' is default for methods[[BR]] 
    88 
    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 
    1112 
    1213Valid 'is' keywords are  
     
    2021Separate multiple modifiers with ''',''' e.g    ....  is protected, override 
    2122      
     23== Notes and Examples == 
     24 
    2225    is fake:: 
    2326       temporary for defining class/method api without implementation 
     
    3235    
    3336    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)) 
    3640 
    3741    is public/protected/private:: 
    38         on class or method(s) 
     42        on class, instance variable or method(s) 
    3943        adjust visibility (default public) 
    4044 
    4145    is abstract:: 
    4246        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. 
    4448 
    4549    is virtual:: 
     
    5155    is override:: 
    5256        Specifies that this method implementation is a redefinition of an existing(shadowed virtual or abstract) method defined in a superclass 
     57 
    5358    is new::  
    5459        Designate that this method is a new one that hides the one that would have