There are three types of constructor in C++. They are Default constructor, Parameterized constructor, Copy constructor.
As the name itself implies, it have to depend on other class only.
Destructor is a special member function of a class, which is invoked automatically whenever an object goes out of the scope. It has the same name as its class with a tilde character prefixed.
In the template specialization, it will make the template to be specific for some data types.
C++ allows us to parameterize directly three kinds of entities through templates: types, constants, and templates.
new and delete operators are mainly used to allocate and deallocate
during runtime.
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.