Arnab_Manna

interface2.java

Nov 27th, 2021
849
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.        
RAW Paste Data