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 return used for in java?
What is object class in java?
Does substring create a new object?
What are the basic concepts of OOPS in java?
What is io stream in java?
How many bytes is double?
How do you sort arraylist in descending order?
Why do we need wrapper classes?
What is the use of isempty in java?
When should I use a singleton?
How do you replace all in word?
How do you do a line break in java?
Can constructor return value?
Is space a char?
How do you make an arraylist empty in java?