1、子类继承抽象类的话,必须覆写抽象类的所有抽象方法
abstract class LeagueOfLegendsPlayer {
public static final String TEAM = "RNG";
private String name = "Uzi";
public String getName(){
return name;
}
public void setName(String name){
this.name = name;
}
public abstract print();
}
class print extends LeagueOfLegendsPlayer{
public void print(){
System.out.println("TEAM:"+TEAM)
System.out.println("name:"+name)
}
}