Question: What role does an interface play when using a mock class? An interface should be implemented by both the real class and the mock class

What role does an interface play when using a mock class?
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.
Interfaces are not involved when using mock classes.
The real class should be an interface that will be implemented by the mock class.
The mock class should be an interface that will be implemented by the real class.
What role does an interface play when using a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!