Sunday, May 1, 2011

Cyclic inheritance in java

The compiler checks for cyclic inheritance like a class extending another class and the second class extending the first class. e.g.

Class Foo extends Bar{}
Class Bar extends Foo{}

results in compiler error.

No comments:

Post a Comment

Chitika