The Gateway to Computer Science Excellence
0 votes
27 views
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
in Object Oriented Programming by | 27 views

1 Answer

0 votes
Whenever you allocate memory dynamically for an object in C++, You must deallocate that memory manually using a Destructor
by (21 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,388 answers
198,577 comments
105,416 users