Introduction on Constructor and Destructor in C . Both constructors and destructors are the member function of the class. A constructor is a function that initializes the object of the class and allocates the memory location for an object, the function has the name as the class name