How Can be child class constructor class neutralize a parent constructor?
I mean in Child constructor we have to use super()- does a way to create a parent object exist?
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);
}
}
You extend the parent object, which is initialized when you initialize the child. Well as a requirement to be initialized, the parent requires a name. This can only be given in the initialization of the child object.
So to answer you question, no