I just noticed in the codebase of a very large project I am assigned at work, a particular class has no constructor. Its subclass though, calls super()
.
Can someone please explain what is going when a subclass calls super()
, but there is no constructor in the parent?
(I can guess that the effect is like calling an empty constructor, but I am wondering if there is anything else going on behind the scenes).