22:41

Interface

Posted by Mitesh Patel |


interface MyFace {

    void show();

    void sum(int x, int y);

    void print();
}

interface MyFace2
{
    void parth();
}

class FirstClass implements MyFace,MyFace2 {

    public void sum(int x, int y) {
    }

    public void print() {
    }

    void mitesh() {
    }

    public void show() {
    }

    public void parth() {
       
    }
}

class InterfaceExample {

    public static void main(String args[]) {
    }
}

0 comments:

Post a Comment

Subscribe