V2EX  ›  英汉词典

Superclass

释义 Definition

Superclass(名词):在面向对象编程中,指父类/基类——被其他类(子类 subclass)继承的类,用来提供通用属性与方法。(在生物分类学中也可指“上纲/总科”等更高层级分类,但此处以编程义为主。)

发音 Pronunciation

/ˈsuːpərˌklæs/

例句 Examples

A dog class can have an animal superclass.
“狗”这个类可以有一个“动物”父类。

The superclass defines shared behavior, while each subclass overrides methods to implement specific details.
父类定义共享行为,而每个子类通过重写方法来实现各自的具体细节。

词源 Etymology

由 **super-**(“在上、超越”)+ class(“类”)构成,字面意思是“在上面的类”。在编程语境中用于表示处于继承层级上方、提供通用功能的“父类/基类”。

相关词 Related Words

文学作品中的使用 Literary Works

  • Design Patterns: Elements of Reusable Object-Oriented Software(Erich Gamma 等):讨论继承结构时频繁使用 superclass/subclass 来说明类层级与可复用设计。
  • Object-Oriented Analysis and Design with Applications(Grady Booch):在讲解面向对象建模与继承关系时使用 superclass 描述父类与抽象层次。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   911 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 18:18 · PVG 02:18 · LAX 10:18 · JFK 13:18
♥ Do have faith in what you're doing.