3 ms·
A base class should only exist where there are implementations -it needs to be plural. Otherwise just fold the base into the child, or better yet use compositi
by bluGill 4y ago
A base class should only exist where there are implementations -it needs to be plural. Otherwise just fold the base into the child, or better yet use composition not inheritance. I generally do not count any form of test double (mock...) as a an implementation, since only rarely is the real implementation something that you should mock.