Hello.
I have one class D (strategy) that is responsible for managing orders (opening/closing positions).
the logic of my program requires that I have strategies with different names ("one", "two", "three").
that is, the code in the classes is the same except for the name of the strategy.
if I could inherit from my main abstract class and only pass the name of my strategy to the constructor of the heir,
then the matter could be considered solved.
but all strategies already have inheritance in the form of the Strategy class.
How does implement this class interaction in code?
Comment