What is default constructor?

A default constructor is a constructor that either has no parameters, or if it has parameters, all the parameters have default values . If no user-defined constructor exists for a class A and one is needed, the compiler implicitly declares a default parameterless constructor A::A() .

Sizin İçin Seçtik  200 TL banknot kaç dolar?

Leave a Reply

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