What is correct name of a method which has the same name as that of class and used to destroy objects?
Answers
Answered by
0
It is Destructor.
It is a Function of a Class which has the same name as that of a class and is invoked when the object goes out of scope.
Similar questions