I want to know if I understood the concept correctly.I would appreciate answers for the following questions. 1)private memeber are not visible in subclass .so if we define any method same as super class method then it is a new method in sub class .so it is not overriding. Are private methods inherited? 2)static methods are hidden in subclass.any sub class method same as super method will be a new method in sub class.so it is not overriding. Are static methods inherited?
Hi brian, I did go thru many questions in this site.After all this ,I got the above concepts.Correct me if i am wrong.Did I mess up some things. --also I would appreciate answers for the above questions. Thanks Tony
On the contrary... Writing some code helps to give us a fuller picture of what's going on. Marilyn, I'm not explicitly disagreeing with your explanation on inheriting static methods. I contend that static methods are not inherited in every polymorphic sense of inheritance. Consider: