Tagged Questions
3
votes
1answer
242 views
Is it possible to refactor inheritance to composition when virtual methods are called inside the base class?
Let's say I have a class called Country and two subclasses called AI and Player. The Country class has a number of virtual methods to allow player-specific or AI-specific behavior.
I want to make it ...