0 votes 0 votes If I allocate the memory using new operator to member in constructor I.e dynamic constructor than should I have to write delete in destructor Object Oriented Programming cplusplus + – anonymous asked Apr 2, 2018 anonymous 400 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Whenever you allocate memory dynamically for an object in C++, You must deallocate that memory manually using a Destructor Kshitij Vengurlekar answered Apr 13, 2018 Kshitij Vengurlekar comment Share Follow See all 0 reply Please log in or register to add a comment.