親クラス
「親クラス」の英語
「親クラス」は英語で superclass と言います。subclassに共通する処理や状態をまとめる上位クラスを指し、parent class もよく使われます。技術文書では superclass が標準的です。
「親クラス」の英語の使い分け
サブクラスに共通する機能を定義する上位クラスを指す標準的な技術用語です。
The superclass provides methods shared by all subclasses.
parent class
親子関係を直感的に表す、説明的で分かりやすい言い方です。
コアイメージ
サブクラスに共通の振る舞いや機能を提供する上位のクラス
英英
A class that provides shared behavior or functionality to its subclasses, acting as their parent in an inheritance relationship.
語源
superclassは、super(上位の)とclass(クラス)が結びついた語で、継承関係における上位のクラスを指す。
コラム
- プログラミングでは親クラスが共通処理や状態をまとめる役割を担い、サブクラスはそれを継承して特化を実装する。
「親クラス」のレベル別の例文
- 中学
The superclass has common methods for all subclasses.
- 高校・英検2級
A superclass lets related classes share common properties and methods.
- TOEIC・ビジネス
Please review the superclass before adding features to this module.
- 日常会話
Which class does this superclass extend?
「親クラス」を英語にするときのよくある間違い
× The subclass inherits the superclass.
○ The subclass inherits from the superclass.
inherit は通常、継承元を from で示します。