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

  • Thread starter Thread starter jquerijero
  • Start date Start date
Status
Not open for further replies.
J

jquerijero

Guest
[quote user="bronco"] If you are looking at a situation where: - bank1 has feature A & B - bank2 has feature A & C - bank3 has feature B & C - etc... or something similar you may want to have a look at the decoration pattern: Decorator pattern - Wikipedia en.wikipedia.org In . It's a bit hard to get you head around the first time, but it's quite powerful. In a lot of cases decoration is a lot better than (far fetched) inheritance. [/quote] This pattern unfortunately will not help him condense his code. I think he is trying to eliminate repetitively similar code.

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