import java.lang.*;
import java.io.*;
interface first
{
abstract public void one();
}
interface second
{
abstract public void two();
}
interface third
{
abstract public void three();
}
class
ravi implements first,second,third // a class with 3 interfaces implementation along with main method
{
public
void one()
{
System.out.println("
you are calling first interface");
}
public
void two()
{
System.out.println("
you are calling second interface");
}
public
void three()
{
System.out.println("
you are calling third interface");
}
public static void main(String
s[])
{
ravi r=new ravi();
r.one();
r.two();
r.three();
}
}
కామెంట్లు లేవు:
కామెంట్ను పోస్ట్ చేయండి