Abstracción de Java
abstract class Animal {
public abstract void animalSound();
public void sleep() {
System.out.println("Zzz");
}
}
naly moslih
abstract class Animal {
public abstract void animalSound();
public void sleep() {
System.out.println("Zzz");
}
}