polimorfismo java exemplo code example
Example: polimorfismo java ejemplo
public static void main(String[ ] args) {
Animal a = new Dog();
Animal b = new Cat();
}
public static void main(String[ ] args) {
Animal a = new Dog();
Animal b = new Cat();
}