question about abstract classes
Hi all. happy to be with u here.
I had an error while trying to use abstract classes, here u are the code i wrote:
Now i will make a subclass Dog :
public abstract class Animal
private String Name;
public Animal(String strname)
public abstract void Speak();
i had the error :
public class Dog extends Animal
public void Speak()
System.out.print("Hiii, I'm a dog!");
Cannot find symbol
symbol : constructor Animal()
location: class animall.Animal
Waiting for answers......
thanks in advance.