Category: C++

Articles on C++ programming language.

Output of Default Constructor Example

Default Constructor And Its Need in C++

The Constructor initializes the data members of a class. When a class does not have a parameter less constructor, the compiler will provide one. But, it has some unwanted behaviors.

Advertisements