View RSS Feed

Recent Blogs Posts

  1. Using Name Hiding for Overriding

    by , 11-30-2011 at 02:45 AM
    Sometimes you will have a java base class that has a method thatís been overloaded several times. It is important for the programmer to remember that redefining the method name in the derived class does not hide any of the base-class versions. Therefore you should keep in mind that overloading works irrespective of whether the method has been defined at this level or in a base class:

    Java Code:
    import static com.acme.examples.Print.*;
    
    public class Mother {
    	char foo(char
    ...