package day6;
public abstract class Laoshi {
String name;
int age;
abstract void job();
public Laoshi(){}
public Laoshi(String name,int age){
this.name=name;
this.age=age;
}
public void printinfo () {
System.out.println("姓名:"+name+"年龄:"+age);
}
class jichuban extends Laoshi {
public void job(){
System.out.println("教基础");
}
}
class kuangjiaban extends Laoshi{
public void job(){
System.out.println("教框架");
}
}
}
laoshi
最新推荐文章于 2023-06-01 08:33:59 发布