OverRiding Vs PolyMorphism

后端 未结 4 2184
醉梦人生
醉梦人生 2020-12-29 10:29

What is the difference between the two?

A super class having myMethod(int a) and an inheriting class having the same method, Is this overriding or poly

4条回答
  •  时光说笑
    2020-12-29 11:14

    Overriding of methods is one type of Polymorphism only. It's mentioned very clearly in the below article. Link is provided below.

    Overriding vs Polymorphism

提交回复
热议问题