What is C++ constructor?

A constructor in C++ is a special method that is automatically called when an object of a class is created .

Sizin İçin Seçtik  What is optional parameter in Java?

Leave a Reply

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

What is C# constructor?

A constructor in C# is a member of a class . It is a method in the class which gets executed when a class object is created. Usually we put the initialization code in the constructor. The name of the constructor is always is the same name as the class. A C# constructor can be public or private.

Sizin İçin Seçtik  Is OnePlus 9R for India?

Leave a Reply

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