Mandy Singh wrote:Hi Guys,
Well... my question is a bit different. I very clearly understand that static methods cannot be "overridden" and I also understand very clearly that variables (whether they are instance variables or static variables) cannot be overridden.
I dont want to override any of those.
All i am asking is, why is there a "discrepancy" when it comes to "hiding" methods and variables using static and non-static contexts together in the code. I am able to hide a static variable using an instance variable, but I am not able to hide a static method using an instance method ( and vice-versa).