mjmboyens2556 mjmboyens2556
  • 03-12-2021
  • Computers and Technology
contestada

Java how to make a method from an interface.

Respuesta :

yvoneequidado
yvoneequidado yvoneequidado
  • 03-12-2021

Answer:

To access the interface methods, the interface must be "implemented" (kinda like inherited) by another class with the implements keyword (instead of extends). The body of the interface method is provided by the "implement" class:

Explanation:

Hope it help?

Answer Link

Otras preguntas

What is John’s profession in “ The Yellow Wallpaper?
Read the excerpt from Frederick Douglass’s speech “What to the Slave Is the Fourth of July?” Go where you may, search where you will, roam through all the monar
The process by which osteoblasts add layers to circumferential lamellae is
Solve the inequality: –3(x + 2) > 4x + 5(x – 7)
Taking the speed of light in vacuum to be 3.000 x 10^8 m/s, find the speed of light in:
A formula for finding the area of a rectangle is A=l?w. If you know the area (A) and length (l) of a rectangle, which formula can you use to find the width (w)?
Andria Treat is a 68-year-old woman in reasonably good health, although overweight. She takes a daily multivitamin supplement and almost daily over-the-counter
A Honda Civic travels in a straight line along a road. Its distance x from a stop sign is given as a function of time t by the equation x(t)= α t2− β t3, where
Which of these was a catalyst for the Scientific Revolution? the Black Plague the Crusades the Renaissance the Inquisition
renaissance the last supper