How multipleInheritance is possible in java?
Answer Posted / harikrishna
Hi, Aruna how r u doing?
In Java multiple inhritance provided through interfaces
by extending morethan one interface. We can extend more
than one class in C++. But this is not possible in java
that's why java doesn't support mutiple inhritance
directly.
public interface GroupedInterface extends Interface1,
Interface2,
Interface3
An interface can extend other interfaces, just as a class
can extend or subclass another class. However, whereas a
class can extend only one other class, an interface can
extend any number of interfaces. The interface declaration
includes a comma-separated list of all the interfaces that
it extends.
Aruna if you still not understood please
go through
http://java.sun.com/docs/books/tutorial/java/IandI/createint
erface.html this site. if you understad it' good. give me
feed back.
Thanq
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is ststic with example
Why java applets are more useful for intranets as compared to internet?
What does yield method of the thread class do?
Is math class static in java?
What is the generic function?
What is instanceof keyword?
How can we pass argument to a function by reference instead of pass by value?
What does int [] mean in java?
What is class and object in java?
What are the different types of sorting in java?
What is the simpletimezone class in java programming?
Can we synchronize static methods in java?
Is array a class in java?
How do you add an arraylist to an array in java?
How many static init can you have?