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

Respuesta :

Answer:

Write an interface named 'Test' with the following behavior:

abstract interface Test {

public abstract Duration getDuration();

public abstract Result check(int a);

public abstract double getScore();

}

ACCESS MORE
EDU ACCESS