Guest User

Untitled

a guest
Nov 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. interface Example1{
  2. public void display1();
  3. }
  4. interface Example2 extends Example1{
  5. }
  6. class Example3 implements Example2{
  7. public void display1(){
  8. System.out.println("display1 method");
  9. }
  10. }
  11. class Demo{
  12. public static void main(String args[]){
  13. Example3 obj=new Example3();
  14. obj.display1();
  15. }
  16. }
Add Comment
Please, Sign In to add comment