Interface
say it: “IN-ter-fays” /ˈɪntərfeɪs/
A contract describing behavior that implementing classes agree to provide.
What is Interface in Java?
Interface — A contract describing behavior that implementing classes agree to provide.
interface Printable {
default String format() {
return "Ready";
}
}
class Ticket implements Printable {
}
Level: Journeyman · More Java terms at this level
Updated