1
0

多態性

Posted at

ガソリン車、ハイブリッド車、電気自動車は厳密には別物ですが、大まかに捉えると車です。
このように、多態性(polymorphism)は厳密には異なるけれど本質的には類似したものを、ざっくりと捕らえる考え方です。

多態性を実現する方法としては
・キャスト
・継承の活用
などがあります。

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0