Try OpenEdge Now
skip to main content
Object-oriented Programming
Programming with Class-based Objects : Using static members of a class : Defining static members : Defining static method overrides and overloadings
 
Defining static method overrides and overloadings
When overriding a super-class method with a static method, the overridden method in the super class must also be defined as static. You cannot override an instance method with a static method, and you cannot do the reverse.
When overloading methods, note that instance and static methods overload each other. In other words, the scope (presence or absence of the STATIC keyword) is not counted in distinguishing one overloaded method from another. For this reason, you cannot define an instance method and a static method in the same class hierarchy that both have the same signature. Such a combination causes ABL to raise a compile-time error.