Strange behaviour when variable is re-declared in the extended class

In reply to S.P.Rajkumar.V:
I was adding to your reply.