What role does an interface play when using a mock class?
A) An interface should be implemented by both the real class and the mock class to guarantee that the mock class accurately simulates the real class when used in a program.
B) The mock class should be an interface that will be implemented by the real class.
C) Interfaces are not involved when using mock classes.
D) The real class should be an interface that will be implemented by the mock class.
Correct Answer:
Verified
Q39: If you have multiple classes in your
Q40: Consider the following declarations: Q41: You wish to implement a callback method Q42: Consider the following class: Q43: Which of the following statements about lambda Q45: An _ belongs to a class whose Q46: Which of the following statements about an Q47: Consider the following class: Q48: Which of the following statements about a Q49: Consider the following code snippet that uses Unlock this Answer For Free Now! View this answer and more for free by performing one of the following actions Scan the QR code to install the App and get 2 free unlocks Unlock quizzes for free by uploading documents