From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/glossary/polymorphism/index.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 files/ja/glossary/polymorphism/index.html (limited to 'files/ja/glossary/polymorphism') diff --git a/files/ja/glossary/polymorphism/index.html b/files/ja/glossary/polymorphism/index.html new file mode 100644 index 0000000000..573439775f --- /dev/null +++ b/files/ja/glossary/polymorphism/index.html @@ -0,0 +1,21 @@ +--- +title: Polymorphism (多態性) +slug: Glossary/Polymorphism +tags: + - CodingScripting + - Glossary +translation_of: Glossary/Polymorphism +--- +

Polymorphism (多態性)とは複数のデータ型を1つのインターフェイスにまとめた表現です。
+
+ 例えば、整数型、浮動小数点型、倍精度浮動小数点型は暗黙的な多態性を持ちます:データ型の違いにもかからず、その3つは算、引き算、掛け算、などができます。

+ +

{{glossary("OOP")}}の場合は、{{glossary("class", "クラス")}} にデータとコードの責務を負わせて、各クラスがいかなる{{glossary("object", "オブジェクト")}}でも(いったん呼び出されると)適切に動作するそれぞれの{{glossary("function", "関数")}}を持っていることで、多態性を達成することができます。

+ +

関連項目

+ +

一般知識

+ + -- cgit v1.2.3-54-g00ecf