For wrtiting favourable tests, __________ is perferred over inheritance.
(a) Encapsulation
(b) Polymorphism
(c) Overloading
(d) Composition
This question was addressed to me during an online interview.
Origin of the question is JMock topic in chapter Testing with Mock Objects of JUnit