Override is method of implementing polymorphism. Though three classes have same method they will show a unique behavior. as an example,
SuperClass A = new SuperClass();
A.MyMethod();
// This will execute code defined in SuperClass
A = new SubClassA();
A.MyMethod();
// This will execute code defined in SubClassA
Comments