gurpeet singh wrote:thanks john . would like to sum up so that there is no confusion.
we cannot hide an instance method with a static method . secondly you can have two methods with the same name but their signatures should be different, which means there argument list much be of different number and or type. that is just plain overloading. you can't define methods which is already defined in the class.
Yes, now you are right.You can have two or more methods with same name even main method but you have to overload them.