作者在 2008-06-24 14:50:40 发布以下内容
abstract class People{
public void eat();
public void running();
public void playing();
public void gts();
}
class Student extends People{
protected void game(){
System.out.println("打游戏");
}
protected void study(){
System.out.println("学习");
}
public void eat(){
System.out.println("吃饭");
}
public void running(){
System.out.println("跑步");
}
public void playing(){
System.out.println("玩");
}
public void gts(){
System.out.prinltn("gts");
}
}
public class Sky{
public static void main(String[] args){
Student sd = new Student();
sd.playing();
sd.gts();
sd.running();
sd.eat();
sd.study();
sd.game();
}
}