Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
4 answers
2k views

Initializing derived classes in the same way

I have a class Base that has several children, say A, B, C. For testing purposes I'd like to mock those derived classes by deriving from them. So MockA derives from A, MockB derives from B and so on. ...
TobiMcNamobi's user avatar
  • 1,171