Interface Learning Objective Welcome Back!. In this Module let us solve Problems related to Interface . Defining an Interface Implementing Interfaces Applying Interfaces Variables in Interfaces Interfaces can be extended Orientation Video Introduction Interface: In the Java programming language, an interface is a reference type, similar to a class, that can contain only constants, method signatures, and nested types. There are no method bodies. Interfaces cannot be instantiated—they can only be implemented by classes or extended by other interfaces. Extension is discussed later in this lesson. Defining an interface: Interfaces are defined with the following syntax (compare to Java's class definition). [ visibility ] interface InterfaceName [ extends other interfaces ] { constant declarations member type declarations abstract method declarations } The body of the interface contains abstract methods, but since all met...
Happy Learning Core Java.