Why Is An Interface Be Able To Extend More Than One Interface But A Class Can't Extend More Than One Class
Basically Java doesn't allow multiple inheritance, so a Class is restricted to extend only one Class. But an Interface is a pure abstraction model and doesn't have inheritance hierarchy like classes(do remember that the base class of all classes is Object). So an Interface is allowed to extend more than one Interface.
2009-2016 downloadmela.com. All rights reserved.