Varadhan Sesharaman wrote:I had good idea on what is overridding and inheritance but actuaaly need to know why we need them and when to use them?
It's basically to allow subtyping; but this is such a fundamental part of Object-Oriented programming that I think you should really read the tutorials rather than relying on our interpretation. You might also want to Google "polymorphism".
Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here