1.

_______________ can easily be used to substitute application code with the test code.(a) Encapsulation(b) Polymorphism(c) Overloading(d) Static bindingThis question was posed to me in homework.Asked question is from JMock in chapter Testing with Mock Objects of JUnit

Answer» CORRECT choice is (b) POLYMORPHISM

The BEST explanation: Polymorphism is used to FORCE certain code patterns to be tested.


Discussion

No Comment Found

Related InterviewSolutions