abstract class DongWu{
abstract void animal();
}
class Dog extends DongWu{
void animal(){
System.out.println("汪汪汪”);
}
}
public class Util{
public static void main(String[] args){
Dog d = new Dog();
d.animal();
}
}
abstract void animal();
}
class Dog extends DongWu{
void animal(){
System.out.println("汪汪汪”);
}
}
public class Util{
public static void main(String[] args){
Dog d = new Dog();
d.animal();
}
}