- interface Printable{
- void print();
- }
- interface Showable{
- void print();
- }
- class testinterface1 implements Printable,Showable{
- public void print(){System.out.println("Hello");}
- public static void main(String args[]){
- testinterface1 obj = new testinterface1();
- obj.print();
- }
- }
No comments:
Post a Comment