1 Comment
User's avatar
Abelardo's avatar

I would fix it by using an abstract class (called ProcessTransaction) where this method, processTransaction, would be abstract (not implemented). Then, I would create two classes: InternationalProcessTransaction and DomesticProcessTransaction. So, both classes extend from ProcessTransaction and they would override the mentioned method at their own.

Expand full comment