Basic example of Multiple Interface in Java


Here is the simple program for printing basic example of multiple Interface in Java.

Source Code

import java.io.*;
import java.util.Scanner;
interface A_class
{
  void display();
}
class B_class implements A_class
{
  public void display()
  {
   System.out.println(" ");
  }
  public void print()
  {
   System.out.println("Print Function By B_class");
  }
}
class multiple
{
  public static void main(String args[])
  {
   B_class o =new B_class();
   o.display();
   o.print();
   A_class o1=new B_class();
   o1.display();
  }
}   
To download raw file Click Here

Output

Print Function By B_class


Learn All in Tamil © Designed & Developed By Tutor Joes