Paul-Peter Tournaris wrote:
> No you don't need do. But if you want to call the base constructors you
> just call super with the appropriate parameters.Also you can create new
> constructors for your new class that extends the base one! For example!
This is basic Java. Check out http://docs.or
No you don't need do. But if you want to call the base constructors you
just call super with the appropriate parameters.Also you can create new
constructors for your new class that extends the base one! For example!
public class base {
public base(){
int i = 0;
}
}
This may seem a bit basic, but I come from a C++ background and it is
confusing me a little.
When I extend a base class, do I need to create a constructor for each base
class constructor ?
What I mean is this. Given :
public class base
{
protected int m_iValue;
public base()
{
3 matches
Mail list logo