| ClassAttributes[class, member] returns a list of modifiers. The given member represents a public, protected, or private member with respect to inheritance, if the list contains Public , Protected , or Private. Other possible modifiers are Static , Abstract , Final , Real , Virtual , Constant , Mutable , Property , Default , Override , and External. ClassAttributes[] returns supported method attributes. |
This loads the package.
ClassAttributes are used to read out the scope of a definition in a class. There are access restrictions Private, Protected, and Public as well as the bindage attribute Static. The next class defines one field with a private scope and another bound to the class.
The attributes are stored and control the usage of a class' member. The private member f cannot be used outside its class, while the static member g is accessed by means of its class name. Virtual and Real, are related to polymorphism, while Constant and Mutable control the integrity of an object. Using an object or a class as a method or indexer can be achieved ny means of Default. Finally, Transient controls the fields to be saved with Export and External allows the handling of "global" operators. |