C++

Topic: Constructors and destructors

What is the use of Constructor ?

The main use of constructors is to initialize objects. The function of initialization is automatically carried out by the use of a special member function called a constructor.

Browse random answers: