Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Polymorphism

Polymorphism

Polymorphism is the presentation of one interface for multiple data types.

For example, integers, floats, and doubles are implicitly polymorphic: regardless of their different types, they can all be added, subtracted, multiplied, and so on.

In the case ofOOP, by making theclass responsible for its code as well as its own data, polymorphism can be achieved in that each class has its ownfunction that (once called) behaves properly for anyobject.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp