p8nda
BETA
Home
Dictionary
Translate
Flashcards
Sign in
Chinese, pinyin, English, or paste image...
p8nda
BETA
Home
Dictionary
Translate
Flashcards
Sign in
析构函数
Meanings
Characters
Examples
Tips
Stroke Order
Related Words
析构函数
析構函數
xīgòuhánshù
noun
Meanings
1
destructor (C++ / OOP)
Characters
析
xī
to dissect, to analyse
构
gòu
to construct, structure
函
hán
letter, function
数
shù
number
Examples
拼音
EN
析构函数
会
在
对象
销毁
时
自动
调用
。
Xīgòuhá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òuhá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
Grid
Outline
析
xī
构
gòu
函
hán
数
shù
Related Words
构造函数
gòuzào hánshù
constructor (OOP) / constructor function
成员函数
chéngyuán hánshù
member function / method (of a class)
调用函数
diàoyòng hánshù
to call a function / function call
函数参数
hánshù cānshù
function parameter / function argument
函数调用
hánshù diàoyòng
function call / function invocation
函数返回
hánshù fǎnhuí
function return / function returns (a value)
函数指针
hánshù zhǐzhēn
function pointer (C/C++)
回调函数
huídiào hánshù
callback function (computing)
数据结构
shùjù jiégòu
data structure (computing)
主函数
zhǔhánshù
main function / main() function (program entry point)
析构函数
xīgòuhánshù
Meanings
Characters
Examples
Tips
Stroke Order
Related Words