
派生类;衍生类别
It calls a method in a derived class.
它调用了它派生类中的方法。
A derived class inherits properties from a base class.
一个有源的基类中继承属性。
Create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
Now the constructor can be correctly inherited by a derived class.
现在构造器可以正确的通过继承而得到一个子类。
How do I write the move assignment function for this derived class?
我怎样为这个派生类编写移动赋值函数?
“Derived class”(派生类)是面向对象编程(OOP)中的核心概念,具体解释如下:
派生类是指通过继承(inheritance)从另一个类(称为基类或父类)派生的新类。它继承了基类的属性和方法,同时可以扩展或修改这些功能。例如:
Animal
(具有属性name
和方法eat()
)Dog
(继承Animal
,新增方法bark()
)Dog
的bark()
)或覆盖基类方法(如重写eat()
实现特定行为)。public
):基类的公有成员在派生类中保持公有protected
):基类公有/保护成员变为派生类的保护成员private
):基类成员在派生类中变为私有Vehicle→Car→ElectricCar
)派生类是实现面向对象三大特性(封装、继承、多态)的重要机制,广泛应用于C++、Java、Python等语言中。理解它需要结合具体语言的语法(如C++用:
符号声明继承,Java用extends
关键字)。
单词:derived class
词性:名词
发音:[dɪˈraɪvd klæs]
"derived class"是面向对象编程中常用的术语,用于描述从现有类继承属性和方法的类。在Java、C#、Python等编程语言中,派生类通常使用关键字extends或者冒号来继承基类。
subclass, inherited class
base class, parent class
Olympicbabysitin commondraw upassociatethereafterlotionchargescurdlingdebilitatededucatinggoodwifemedullarysparklesTheodorecloudy dayCommonwealth of Nationsdigital subtraction angiographyenergy metabolismmake strangeneck of the woodsshake hands withangiomyomaantimagneticbrightenerchemosiscyclorubberdendrolitejumbolterautomatization