Is Super necessary in constructor?

super() will be automatically inserted of this(…) or super(…) is not specified. If the super class does not include a no-arg constructor or it is not accessible, then it won’t compile. In that case it is necessary to put super(…) and specify the constructor .

Sizin İçin Seçtik  Inheritance nedir yazılım?

Leave a Reply

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