Inheritance (継承)
継承は、オブジェクト指向プログラミングの大きな特徴です。データ抽象化は、いくつかのレベルで実行できます。つまり、クラスにスーパークラスとサブクラスを持たせることができます。
アプリ開発者は、スーパークラスの属性とメソッドを選択して、独自に保持して追加することで、とても柔軟にクラスを定義できます。言語によっては、クラスを複数の親から継承することができます(多重継承)。
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2024 by individual mozilla.org contributors. Content available under a Creative Commons license.