Why class can''t extend more than one class, JAVA Programming

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 permit multiple inheritances, 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 permitted to extend more than one Interface.

 

Posted Date: 7/3/2013 5:29:22 AM | Location : United States







Related Discussions:- Why class can''t extend more than one class, Assignment Help, Ask Question on Why class can''t extend more than one class, Get Answer, Expert's Help, Why class can''t extend more than one class Discussions

Write discussion on Why class can''t extend more than one class
Your posts are moderated
Related Questions
In this assignment you work on a set of tasks with the classes Currency, Money and Bank. Money and Currency You have been given a template for the Currency and Money classes (Lab1.

The LookupDispatchAction is a subclass of DispatchAction. It does a reverse lookup on the resource package to get the key and then gets the method whose name is associated with the

How can you define a consistent web design? Why is it needed? A consistent web design should be the one in which achieves the result in which it was designed for, which result

What is the output of the following JavaScript code? name="Ali Akbar"; document.write(name.charAt(4)) ;

Why the number of temporary workers is on the rise? Discuss main reasons? Temporary workers: Temporary workers are those workers that a company can hire to perform a certain ta

Universal Android and iOS, Multipurpose Testing Application - Based on Phonegap Project Description: Universal Android and iOS, Multipurpose Testing Application Based on Phon

Need to develop Chat application for j2me and I want Image Processing code Project Description: We want a chat application for a community website. Image processing and co

The DispatchAction class is used to group related actions into single class. Using this class, you can have a method for every logical action compared than a one executes method. T

Draw an inheritance hierarchy to represent a shoe object. The base class should have derived classes of Dress Shoes, Tennis Shoes and Boots.

Taking in Command Line Arguments In Java, the program can be written to accept command-line-arguments. Example Code:  command-line arguments /*  This