Showing posts with label inheritance type. Show all posts
Showing posts with label inheritance type. Show all posts

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.

Chitika