Show me error plz | Sololearn: Learn to code for FREE!


Show me error plz

4/30/2021 4:48:30 PM

Luqman khan

5 Answers

New Answer


Thanks.... bro


Luqman khan Clear me doubt please.


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); } }


Where is the error bro