Jero
02-15-2008, 03:57 PM
When I have two classes: Super and Sub, and I have Sub to extend Super, I get a compile error I'm unable to understand:
Cannot find symbol - constructor Super()
Super class:
public class Super
{
public Super(String param) {}
}
Sub class:
public class Sub extends Super
{
public Sub(int param) {}
}
Why would I need the constructor Super()?
Thanks in advance.
Cannot find symbol - constructor Super()
Super class:
public class Super
{
public Super(String param) {}
}
Sub class:
public class Sub extends Super
{
public Sub(int param) {}
}
Why would I need the constructor Super()?
Thanks in advance.