A constructor in C++ is a special member function of a class that is automatically called when an object of that class is created. Its primary purpose is to initialize the data members of the new object.
Key properties of a constructor:
It has the same name as the class.
It does not have a return type, not even `void`.
It can be overloaded (i.e., a class can have multiple constructors with different parameters).
If a constructor is not defined by the programmer, the compiler provides a default constructor.