So say I have a subclass that extends a superclass. In what scenarios do I need to explicitly type super()
to get the superclass constructor to run?
I\
You never need just
super();
That's what will be there if you don't specify anything else. You only need to specify the constructor to call if:
You claim that:
At the same time I've also seen instances on here where someone's problem was not explicitly calling super().
Could you give any examples? I can't imagine how that's possible...