67.6k views
1 vote
Java how to make a method from an interface.

User Simbu
by
4.9k points

1 Answer

3 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 Nathaniel Saxe
by
5.5k points