- 4
Show me error plz
5 Respostas
+ 1
Thanks.... bro
0
Luqman khan
Clear me doubt please.
0
class Animal{
public void movie(){
System.out.println("Animals can move");
}
}
class Dog extends Animal{
public void move(void){
System.out.println("Dogs can walk and run");
}
public void bark(){
System.out.println("Dogs can bark");
}
}
public class TestDog{
public static void main(String args[]){
Animal a = new Animal(int a);
Animal b = new Dog("dog"); a.move();
b.move(a);
b.bark(b);
}
}
0
Where is the error bro