What is the use of empty constructor?

Empty constructor just gives you an instance of that object . You might use setters on it to set necessary properties.

Sizin İçin Seçtik  How do we define constructor in C++?

Leave a Reply

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