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.

Java

LANGUAGE: JAVA CHALLENGE: 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.

Read More