Dear all,
If I write the following code:
public abstract class A {
......
}
----------------------------------------------
public abstract class B extends A {
.......
}
public class C extends B {
........
}
Is the above code valid, if two layer of abstract class is declared and
finally inherited by
class C?
Thanks
Ed - 20 Jan 2006 10:10 GMT
hon123456 skrev:
> Dear all,
> Is the above code valid, if two layer of abstract class is declared and
> finally inherited by
> class C?
>
> Thanks
Yes.
.ed
--
www.EdmundKirwan.com - Home of The Fractal Class Composition.
Ashish - 20 Jan 2006 12:21 GMT
Yes,
It is absolutely possible.
All the abstract methods in A must either be implemented in B or in C
And all abstract methods in B must be implemented in C.