A short summary of the question: I have a parent class which is extended by a child class.
public class Parent{
public Parent(){
//constructor logic
}
}
This child class calls the Parent's constructor using super:
public class Child extends Parent{
public Child(){
super();
}
}
I was wondering if I were to extend the Child class if I could call the super() method in the Grandchild class' constructor:
public class Grandchild extends Child{
public Grandchild(){
super();
}
}
That would call the Child class constructor, which in turn will call the Parent class constructor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With