20761 - VictoriaBrown/MyProgrammingLab_Ch10 GitHub Wiki

QUESTION:

Write an interface named 'Test' with the following behavior : a method 'getDuration' that returns a 'Duration' object . a method 'check' that accepts an integer parameter and returns a 'Result' object . a method 'getScore' that returns a double .

CODE:

public interface Test {
	
	// getDuration method:
	Duration getDuration();

	// check method:
	Result check(int b);

	// getScore method:
	double getScore();

}