Say there are two interfaces, which have different methods. I am implementing both interfaces in a class and using methods of both the interfaces.
interface A { void show1(); }
interface B { void show(); }
public class test implements A, B{
@Override
void show1(){
System.out.println("show1");
}
@Override
void show(){
System.out.println("show");
}
}
Definition of Multiple Inhertiance:
Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit characteristics and features from more than one parent object or parent class.
Question
Can I say what I did in my program is Multiple Inheritance ? If No, Why ?
Note
I am using Java 7.