Question :

State whether below class relationship is correct or not . If not why ?

class A: B {}

class B: C {}
class C: A {}

Answer :

Above releationship is incorrect as it has circular relationship. This would result in compile-time error.

No comments:

Popular Posts