Define static method overrides and overloadings
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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.