Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Example1{
- public void display1();
- }
- interface Example2 extends Example1{
- }
- class Example3 implements Example2{
- public void display1(){
- System.out.println("display1 method");
- }
- }
- class Demo{
- public static void main(String args[]){
- Example3 obj=new Example3();
- obj.display1();
- }
- }
Add Comment
Please, Sign In to add comment