What happens when there is no default constructor?

If no user-defined constructor exists for a class A and one is needed, the compiler implicitly declares a default parameterless constructor A::A() . This constructor is an inline public member of its class.

Sizin İçin Seçtik  Reaksiyon gostermek ne demek?

Leave a Reply

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