+ 1

Is the working order of a constructor and a destructor in c++ different?

Plzz give a suitable answer

17th Mar 2019, 2:42 AM
Sagnik Ganguly
Sagnik Ganguly - avatar
3 Réponses
+ 8
The constructor is called when the object is created, and the destructor is called when the object is destroyed (usually at the end of the program).
17th Mar 2019, 2:44 AM
Rowsej
Rowsej - avatar
+ 2
Thanx for the answer
17th Mar 2019, 3:05 AM
Sagnik Ganguly
Sagnik Ganguly - avatar
0
yep , the working order of constructor & destructor is different.
17th Mar 2019, 6:02 AM
Suraj
Suraj - avatar