Can we call constructor in subclass constructor?

Calling the constructor of a subclass within the constructor of the base class is not possible . There are various reasons for this but one is that a constructor of a derived class calls, implicitely or explicitly, a constructor of the base class.7 Ara 2017

Sizin İçin Seçtik  Does subclass call superclass constructor?

Leave a Reply

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