subject:การ Multiple Inheritance
syntax:class class_name implements interface1, interface2
{
attribute;
method;
}
interface Life
{
public abstract void walk ();
public abstract void run ();
}
content:interface1 และ interface2 ต้องไม่มี abstract method ที่มี signature เหมือนกันทุกประการ
example:interface Address
{
public abstract void setCountry ( String country );
}
class Bamboo implements Life, Address
{
public void walk ( )
{
}
public void run ( )
{
}
public void setCountry ( String country )
{
}
}