268,699 views
29 votes
29 votes
Java how to make a method from an interface.

User Caram
by
2.9k points

1 Answer

17 votes
17 votes

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:

Step-by-step explanation:

Hope it help?

User AeyJey
by
3.3k points