An alternative ordering
First, say
class ExprBase;
to make it known that ExprBase is the name of a class
Next, declare Expr (which needs to know about ExprBase)
Then declare ExprBase, and continue as before
Previous slide
Next slide
Back to first slide
View graphic version