类对象

類對象
lèiduìxiàng
noun

Measure Word

Meanings

  1. 1 class object
  2. 2 instance of a class

Examples

Yòng new guānjiàn zì chuàngjiàn yīgè lèi duìxiàng.
Use the new keyword to create a class object.
Měi gè lèi duìxiàng dōu yǒu zìjǐ de zhuàngtài.
Every class object has its own state.

Tips

usage
对象 duìxiàng in OOP means "object" — but the same word in everyday Chinese means "boyfriend / girlfriend / partner" (e.g. 对象 "to look for a partner"). Programmers joke that they have many 对象 — in the OOP sense.

Stroke Order

lèi
duì
xiàng