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
Android and Universal iOS, Multipurpose Testing App Universal iOS and Android, versatile Testing App Based on Phonegap with the subsequent main features * Support single answ

I want to know if you can help me with a javacard programming project

State about the performance of java First versions of java were pretty slow. Java performance has gotten a lot better with aggressive just-in-time-compiler (JIT) techniques

Question 1 Explain any five buzz words in Java Question 2 Explain exception classes and also explain common exceptions in java Question 3 Explain primitive and abstract data t

short Java application that stores words in an Array or ArrayList.


what is methods override?

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.

You are required to  design & implement  online  food delivery  system  using Java RMI technology.  This involves writing both the server and the client program(s). Client programs

A BeanFactory is like a factory class that having a collection of beans. The BeanFactory holds Bean Definitions of multiple beans within itself and then instantiates the bean whene