package practice.test;
interface Ones {
void print_test();
}
interface Twos{
public void print_test1();
}
interface Three extends Ones,Twos{
void print_test();
}
class child implements Three
{
@Override
public void print_test() {
System.out.println("Test overides - Test Methods");
}
public void print_test1() {
System.out.println("Inside Test1");
}
}
class Main_01
{
public static void main(String[] arg) {
child c=new child();
c.print_test();
c.print_test1();
c.print_test();
}
}
No comments:
Post a Comment