析构函数

析構函數
xīgòuhánshù
noun

Meanings

  1. 1 destructor (C++ / OOP)

Examples

Xīgòu hánshù huì zài duìxiàng xiāohuǐ shí zìdòng diàoyòng.
The destructor is automatically called when the object is destroyed.
Jìde zài xīgòu hánshù lǐ shìfàng zīyuán.
Remember to release resources in the destructor.

Tips

usage
Paired with 构造函数 (gòuzào hánshù, constructor). means 'to split/dissect' — the destructor 'takes apart' what the constructor built. Pinyin note: is read gòu (same as 构造).

Stroke Order

gòu
hán
shù