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
Computer Science,
6 months ago
Math,
6 months ago
English,
6 months ago
Hindi,
1 year ago
English,
1 year ago