Why call to this () must be the first statement in constructor?

this or super needs to be first statement in constructor so that child class constructor invokes parent class constructor first . This is required to initialize any variable in parent class before doing any thing in child constructor.

Sizin İçin Seçtik  How do I get Ecoin?

Leave a Reply

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