Delegation
- Last Updated: August 25, 2020
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Delegation is the simple yet powerful concept of letting contained objects do their own work. It is used to describe the situation where one object assigns a task to another object, known as the delegate.
In ABL, Delegation uses composition to build a class from one or more other classes without relating the classes in a hierarchy. You can create your own container and delegate classes in ABL. You can also use interfaces to help enforce consistency between the method stubs implemented in a given container class and the effective method implementations defined in a corresponding delegate class.
- Delegation in Develop Object-oriented ABL Applications
- Comparison with procedure-based programming delegation in Develop Object-oriented ABL Applications
- Comparison with procedure-based programming compile time checking in Develop Object-oriented ABL Applications