-
Notifications
You must be signed in to change notification settings - Fork 0
An interface in Java is a reference type that defines a contract of methods that a class must implement. It allows multiple inheritance of type, promotes loose coupling, and enables polymorphism. Interfaces can contain: Abstract methods (without a body) Default methods (with a body, introduced in Java 8) Static methods Constants
harshadev-7/interfaces-java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
About
An interface in Java is a reference type that defines a contract of methods that a class must implement. It allows multiple inheritance of type, promotes loose coupling, and enables polymorphism. Interfaces can contain: Abstract methods (without a body) Default methods (with a body, introduced in Java 8) Static methods Constants
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published