Advertisement
Arnab_Manna

interface2.java

Nov 27th, 2021
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. interface printable{
  2.     void print();
  3. }
  4.  
  5. class A6 implements printable{
  6.     public void print(){System.out.println("hello");}
  7.    
  8.     public static void main(String args[])
  9.     {
  10.         A6 ob = new A6();
  11.         ob.print();
  12.     }
  13. }
  14.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement