Answer Posted / tewodros tesema
yes.actually java suports multiple inheritance
example:
class A{
int a=10;
}
class b extends A{
int b=3;
}
clss c extends b{
int c=a+b;
system.out("result"+c);
}
here calss b in herits a and clas c in herits b the it also
in herits a through b. also since java uses interfaces it
also suports multiple inheritance.
| Is This Answer Correct ? | 2 Yes | 29 No |
Post New Answer View All Answers
Differences between traditional programming language and object oriented programming language?
What is the difference between compare and compareto in java?
How much is a java license?
What is mean by encoding?
Difference between process and thread?
What are the advantages of exception handling in java?
Define how objects are stored in java?
What’s the difference between the methods sleep() and wait()?
Discuss about garbage collector in Java.
What is an object in java and how is it created?
Why char array is preferred over string for storing password?
What is computer compiler?
Explain java thread life cycle.
Is java developer a good career?
What do you understand by copy constructor in java?