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
What is a newline character in java?
Explain java code for recursive solution's base case?
What is blank final variable?
What is a buffer in computer?
Difference between a process and a program?
what is aggregation in java?
Write a program to solve producer consumer problem in java?
Can we force garbage collector to run ?
What lambda means?
What is Recursion Function?
Why we used vector class?
What does indexof mean?
what is deadlock? : Java thread
Print Vertical traversal of a Binary Tree.
Explain what pure virtual function is?