Java

Java Interface Example1 min read

Java Code:

Output:




Interface looks like class but it is not a class.

An interface can have methods and variables just like the class but the methods declared in interface are by default abstract (only method signature, no body).

Leave a Comment