1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Natasha_Volkova [10]
4 years ago
11

Write a public interface named Test with the following behavior: a method getDuration that returns a Duration object. a method c

heck that accepts an int parameter and returns a Result object. a method getScore that returns a double.
Computers and Technology
1 answer:
OleMash [197]4 years ago
4 0

Answer:

The code to this question can be given as:

Code:

public interface Test

{

   public abstract Duration getDuration();

   public abstract Result check(int ar);

   public abstract double getScore();

}

Explanation:

An interface is similar to Java Class, and it has only static variables and abstract methods. Java uses a multi-inheritance interface. Many Java interfaces can be implemented by a Java class. All methodologies were implicitly public and abstract within an interface.

In the given question we a function that is "Test" and inside the interface, we define three functions that are defined as:

  • First, we declare a "getDuration" method that returns the Duration object.
  • Second, we declare a "check" method that accepts an integer variable that is "a".
  • Third, we declare a "getScore" method that returns a double value.

You might be interested in
In Excel, an individual cell is the intersection of a row and a column.<br> True<br> False
Tom [10]

Answer:

True

Explanation:

3 0
3 years ago
Read 2 more answers
The process of recognizing information? needs, using efficient search techniques to locate reliable sources of? information, and
RUDIKE [14]
What is being referred above is the digital information fluency. They are the ones responsible of producing an effective and efficient with the use of digital information.They also use it ethically which is beneficial to those who are using it. They are also used in evaluating and finding information in regards to digital information.
8 0
3 years ago
What are MS Word's default tabs?
pochemuha
File | Home | Insert | Design | Page Layout | References | Mailings | Review | View
3 0
4 years ago
Read 2 more answers
Identifying Characters
alina1380 [7]
The answer is d I just took the test
5 0
3 years ago
Read 2 more answers
Alex is setting up a network for his company's computers. He installs a circuit board into each computer, enabling it to be conn
Nitella [24]
If it's an ethernet network:  <span>network interface card</span>
6 0
3 years ago
Other questions:
  • Write a program that computes and prints the average of the numbers in a text file. You should make use of two higher-order func
    9·1 answer
  • Problems of mobile phones
    8·1 answer
  • What information should the subtitles in the clips of your video per folio provide?
    14·1 answer
  • Application servers are usually grouped into two types: page-based and _____ systems.
    6·1 answer
  • While working with style formatting for a Microsoft Word document, when you change the text or paragraph formatting of a single
    13·1 answer
  • Every modern nation has a Central Bank. Which of the following is the Central Bank for these United States?
    14·2 answers
  • The SPF strategy can be proven to be optimal in the sense that it minimizes average response times. In this problem, you will de
    10·1 answer
  • Outline 3 computer system problem that could harm people and propose the way avoid the problem​
    12·1 answer
  • True or False: Variablename must start with a number.
    13·1 answer
  • Peer collaboration helps develop critical-thinking skills, which is the ability to
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!