Create a Java program to demonstrate the use of nested interfaces
interface Outer { void outerMethod(); interface Inner { void innerMethod(); } } class MyClass implements Outer.Inner { @Override public void innerMethod() { System.out.println("Inner method implementation"); } } public class Main { public static void main(String[] args) { MyClass myClass = new MyClass(); myClass.innerMethod(); } }
Inner method implementation
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions