≡ Menu

C++ Multiple Constructors

Constructors and destructors are fundamental to the concept of classes in C++. Both constructor and destructor are more or less like normal functions (but with some differences) that are provided to enhance the capabilities of a class. Constructor, as the name suggests is used to allocate memory (if required) and construct the objects of a [...]

{ 9 comments }