what is the difference between single inheritance and single level inheritance?
what is the difference between single inheritance and single level inheritance?
what is the difference between single inheritance and single level inheritance?
Single inheritance means, A class can inherit only one class directly, that means a Class can extend only one class in anycase.
(Java support single inheritance not multiple like C++)
Single level inheritance is same as specified above, but java supports mutiple level inheritance
For instance
Class A
{}
class b extends a
{}
class c extends b
{}
over here class c is inherting from both a and b.
There is no difference between single and single level inheritance...Both of them same..
----------------------
suresh