Try OpenEdge Now
skip to main content
Object-oriented Programming
Programming with Class-based Objects : Using static members of a class : Accessing static members
 

Accessing static members

In general, you can access static members from other static member definitions, from instance member definitions, and from external procedures. As with instance members, the requirements for accessing static members differ when accessing them from outside or inside the class where they are defined. The available options for accessing static members also depend on the kinds of static members you are accessing. Finally, the requirements for accessing overridden static methods are different than for accessing overridden instance methods.
The following sections describe these access options and requirements:
*Options for referencing static members
*Usingstatic type-name syntax
*Accessing static members from outside the defining class
*Accessing static members from inside the defining class
*Calling static methods from inside the defining class
*Calling overridden and super-class static methods
*Callingoverloaded static methods
*Accessing static and instance events and event handlers
* Options for referencing static members
* Using static type-name syntax
* Accessing static members from outside the defining class
* Accessing static members from inside the defining class
* Calling static methods from inside the defining class
* Calling overridden and super-class static methods
* Calling overloaded static methods
* Accessing static and instance events and event handlers