Try OpenEdge Now
skip to main content
Object-oriented Programming
Programming with Class-based Objects : Using static members of a class : Accessing static members : Using static type-name syntax
 
Using static type-name syntax
You can call a static method or access a static variable data member, property, or class event using static type-name syntax, as follows:

Syntax

class-type-name : {method-name ( [parameters] ) |data-element|event}
Element descriptions for this syntax diagram follow:
class-type-name
The type name of the class where the static member you are referencing is defined. This can be the fully qualified class type or the class name with the presence of an appropriate USING statement. For more information on class type names, see Defining and referencing object type names.
method-name ( [parameters] )
The name of a static method (method-name) that is accessible and defined by class-type-name, followed by any required parameter list (parameters). In all other respects, you call a static method exactly like an instance method. For more information on calling methods and specifying parameter lists, see the class-based method call entry in OpenEdge Development: ABL Reference.
data-element
The name of a static variable data member or static property that is accessible and defined by class-type-name. In all other respects, you access a static variable data member or property exactly like an instance data member or property. For more information, see the and the class-based data member access and property access entries in OpenEdge Development: ABL Reference.
event
The name of a static class event that is accessible and defined by class-type-name. In all other respects, you access a static class event exactly like an instance event, in order to publish it or subscribe event handlers to it. For more information, see the and the entries for the Publish( ), Subscribe( ), and Unsubscribe( ) event methods in OpenEdge Development: ABL Reference.
Use of this syntax for referencing these static members is required or optional, depending on the context where you access them and on other features of static members.