Do subclasses need super?

You need a call to super() if and only if there’s no default constructor (accepting no arguments) for your parent class . In all other cases (where a constructor with zero arguments exists) you don#t have to code it.

Sizin İçin Seçtik  What is the profit of BSNL?

Leave a Reply

Your email address will not be published. Required fields are marked *