What role does interface play
Answers
Answered by
2
An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types.
hope it helps you
hope it helps you
Similar questions
Biology,
7 months ago
Accountancy,
7 months ago
Chemistry,
7 months ago
Math,
1 year ago
Chemistry,
1 year ago
World Languages,
1 year ago