All Questions
2 questions
0
votes
3
answers
356
views
Base class responsibility
can base class contain protected methods that are not to be used by all descendant classes?
I have this situation:
EntityA: has some methods that handle activities
EntityB: has some methods that ...
4
votes
1
answer
12k
views
Adding base-class (inherited) functionality to classes that you don't control
I have a set of classes from a 3rd party library. These classes use an inheritance structure to share logic. I would like to add a layer of abstraction in the middle of their inheritance tree to add ...