p8nda
BETA
Home
Dictionary
Discord
p8nda
BETA
Home
Dictionary
Discord
析构函数
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ò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
Grid
Outline
析
xī
构
gòu
函
hán
数
shù
Related Words
构造函数
gòuzàohánshù
constructor (OOP) / constructor function
成员函数
chéngyuánhánshù
member function / method (of a class)
调用函数
diàoyònghá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àohá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