[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How would you OO this?

  • Thread starter Thread starter dbeavon
  • Start date Start date
Status
Not open for further replies.
D

dbeavon

Guest
Even without separate methods or properties, there is a very common feature he is probably using from the world of OO called "polymorphism". That is where a given method signature can be overridden to behave in a slightly different way for each derived class. IE. Each bank may have slightly different method implementations that extend upon common/reusable code that is inherited from base (super) classes. Peter's suggestion to use interfaces provides some additional advantages that are similar to polymorphism. The introduction of interfaces would allow bank classes to share their common method signatures WITHOUT actually requiring them to share any implementation code (eg inherited from a common base class). This provides a greater level of decoupling between clients that use IBank and the implementations of IBank.

Continue reading...
 
Status
Not open for further replies.
Back
Top