析构函数

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

Meanings

  1. 1 destructor (C++ / OOP)

Examples

HSK 7-9
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.
HSK 7-9
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 构造函数 (constructor). means 'to split/dissect' - the destructor 'takes apart' what the constructor built. The here is read gòu, same as in 构造.

Stroke Order

gòu
hán
shù