void drink(){}
public void eat(String what){}
}
class Petya extends Human implements doctor_role{
height = 100;
weight = 100;
public void drink(){
System.out.println(“Petya drinks”);
}
public void eat(String what){
System.out.println(“Petya ” + what);
}
public void heal(){
System.out.println(“Vasya heals someone”);
}
}
class Vasya extends Human implements policeman_role{
height = 200;
weight = 200;
public void drink(){
System.out.println(“Vasya drinks”);
}
public void eat(String what){
System.out.println(“Vasya eats” + what);
}
public void arrest(String who){
System.out.println(“Vasya aressts” + who);
}
}
interface policeman_role{
public void arrest(String who){}
}
interface doctor_role{
public void heal(){}
}