public class PersonTest {
public static void main(String[] args){
Person a1 = new Game Character();
a1.name = "momo";
a1.walk();
a1.running();
a1.talk("Chinese");
}
}
class Game Character{
String name;
int age;
boolean isFemale;
public void walk(){
System.out.println("walk");
}
public void running(){
System.out.println("running");
}
public void talk(String language){
System.out.println("talk" + language);
}
}