You can reference the parent’s constructor with “super”, from within a child’s constructor.
public class Child extends Parent {
public Child(int someArg) {
super(someArg);
// other stuff
}
// ....
}
You can reference the parent’s constructor with “super”, from within a child’s constructor.
public class Child extends Parent {
public Child(int someArg) {
super(someArg);
// other stuff
}
// ....
}