创建对象

創建對象
chuàngjiànduìxiàng
verb

Meanings

  1. 1 to create an object (OOP)
  2. 2 to instantiate

Examples

Yòng new guānjiànzì chuàngjiàn duìxiàng.
Use the new keyword to create an object.
Chuàngjiàn duìxiàng zhīqián yào dìngyì lèi.
You need to define a class before creating objects.

Tips

usage
对象 has two common senses: (1) 'object' in OOP, (2) 'romantic partner / significant other'. 创建对象 in a tech context unambiguously means instantiating a class — but out of context, 对象 (find a 对象) means 'find a boyfriend/girlfriend'.

Stroke Order

chuàng
jiàn
duì
xiàng