Should constructor be public or private C++?

A constructor is a special member function of a class which initializes objects of a class. In C++, constructor is automatically called when object of a class is created. By default, constructors are defined in public section of class .21 Tem 2017

Sizin İçin Seçtik  Which constructor is called first in C# default and parameterized?

Leave a Reply

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