Describe the importance of destructors. list some of the special properties of destructors
Answers
Answered by
7
Destructors do not have return type and not even void.
Destructors can be virtual whereas constructors cannot
Only one destructor can be defined in the destructor.
Destructors do not have arguments.
Destructors neither have default values nor can be overloaded
Programmer cannot access addresses of constructors and destructors.
Destructors can make implicit calls to operators and delete if memory allocation/de allocation is needed for an object.
Destructors can be virtual whereas constructors cannot
Only one destructor can be defined in the destructor.
Destructors do not have arguments.
Destructors neither have default values nor can be overloaded
Programmer cannot access addresses of constructors and destructors.
Destructors can make implicit calls to operators and delete if memory allocation/de allocation is needed for an object.
Answered by
0
Explanation:
describe the important of destructor write a program to use the destructor function
Similar questions