Applying the _________ pattern to a class means removing the creation of all object instances for which this class isn’t directly responsible and passing any needed instances instead.
(a) Message Passing
(b) Inversion Of Control
(c) Observer Pattern
(d) Strategy Pattern
I have been asked this question by my school principal while I was bunking the class.
My question is from Comparing Stubs, Mock Objects and In-container Testing in section In-container Testing of JUnit