Sharan Ashok Vasandani wrote:Is shadowing of variables from Super Class in Sub class a good practice?
It adds possible ambiguity. I'd prevent it if possible - and as far as I know it's always possible; just rename the variable.
Is there a situation where it is a must and cannot be avoided?
Since there is virtually no limit on the allowed variable names it's almost always possible to avoid it, just by renaming it.