interface teacher{
void teaching();
}
interface father{
void earning();
}
abstract class driver{
abstract void picking();
}
class person extends driver implements teacher,father{
public void teaching() {
System.out.println(".....教书");
}
public void earning() {
System.out.println(".....挣钱");
}
public void picking() {
System.out.println(".....接送孩子");
}
}
public class Test4 { public static void main(String[] args) {
// TODO Auto-generated method stub
person p = new person();
p.teaching();
p.earning();
p.picking();
}}