constructor

What default functions provided by compiler in C++?

Below are default functions provided by compiler  in C++ language if not implemented  in a class by a software developer. Default constructor Copy constructor Assignment operator Destructor NOTES Default constructor example: If we don’t write any constructor in a class including c++ copy constructor then default constructor provided by compiler will be called when we […]

Why virtual constructor in C++ is not possible? – Reason

Answer includes reason why virtual constructor in C++ is not possible. By the way there is no concept of C++ virtual constructor. Note that virtual constructor is frequently asked interview question and we need to provide the reason that why there is not concept of virtual constructor. Also, don’t forget to specify that Factory Method […]

Scroll to top