Untitled

 avatar
unknown
plain_text
2 years ago
449 B
1
Indexable
interface A {
    void meth1();
    void meth2();
}
class MyClass implements A {
    public void meth1() {
        System.out.println("Implementation of meth1() method");
    }
    public void meth2() {
        System.out.println("Implementation of meth2() method");
    }
}
class InterfaceExample {
    public static void main(String[] args) {
        MyClass obj = new MyClass();
        obj.meth1();
        obj.meth2();
    }
}
Editor is loading...