interface Father
{
int strong();
}
interface Mother
{
int kind();
}
class FatherImpl implements Father{
@Override
public int strong(){
return 10;
}
}
class MotherImpl implements Mother{
@Override
public int kind(){
return 10;
}
}
class Son extends FatherImpl implements Mother{
@Override
public int strong()
{
return super.strong()+1;
}
@Override
public int kind()
{
return new MotherImpl(){
@Override
public int kind(){
return super.kind()-1;
}
}.kind();
}
}
public class MutiExtends
{
public static void main(String[] args)
{
Son son = new Son();
System.out.println(son.kind()+" "+ son.strong());
}
}
interface Father{ int strong();}interface Mother{ int kind();}class FatherImpl implements Father{ @Override public int strong(){ return 10; }}class MotherImpl impl...