A question was asked to me which is as follow:
There is a class Fruitlist which has a sub class apple
and there is a class Fruit which has a sub class orange
FruitList uses Fruit (* not sub classed, only uses it)
and
Apple uses Orange
Is there something wrong in above scenario?
or
writing a java code for above scenario can be possible?