What is a destructor?

What is a destructor?

A.  A function called when an instance of a class is initialized

B. A function that is called when an instance of a class is deleted

C. A special function to change the value of dynamically allocated memory

D. A function that is called in order to change the value of a variable

Hướng dẫn

Chọn B là đáp án đúng

Tags: