interface in Java by lakshmanse

interface Intfac{
   void see();
}

class One implements Intfac{
  public void wish(){
    System.out.println("Hello users 👋");
}
public void see(){
  System.out.println("Hello users Can you 🙈 See");
}

}

class Main extends One {
  public static void main(String[] args) {
    System.out.println("Hello world!");
One obj = new One();
obj.wish();
obj.see();

  


  }
}

Comments

Popular posts from this blog

250+ C Programs for Practice

FUNCTION OVERRIDING IN CPP