子类

子類
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 父类 (fùlèi, parent class) — 'child' vs 'father', the family metaphor for inheritance is the same in both languages. 基类 (jīlèi) is 'base class'.

Stroke Order

lèi