How do you identify a class constructor?

A constructor for a class has the same name as the class name. Unlike ordinary methods, a constructor definition is identified by the CONSTRUCTOR statement . In addition, constructors cannot have a return type. You are not required to define a constructor.

Sizin İçin Seçtik  What is copy constructor C++?

Leave a Reply

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