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
myMethod(int a)
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