子类

子類
zǐlèi
noun

Measure Word

Meanings

  1. 1 subclass (OOP)
  2. 2 derived class

Examples

Zǐlèi jìchéng le fùlèi de suǒyǒu fāngfǎ.
The subclass inherits all the methods of the parent class.
Wǒmen kěyǐ wèi tā chuàngjiàn yī gè zǐlèi.
We can create a subclass for it.

Tips

usage
Pairs naturally with 父类 (parent class): 'child' vs 'father', the family metaphor for inheritance is the same in both languages. 基类 is 'base class'.

Stroke Order

lèi