Hi,
Java:: How Can be child class constructor class neutralize parent constructor?
I mean in Child constructor we have to use super()- does exist way not to create parent object ?
Example with super:
class abstract Parent{
protected String name;
public Parent(String name){
this.name=name;
}
}
class Child extends Parent{
public Child(String name,int count){
super(name);
}
}