virtual void accept(Visitor*)=0; |
|
struct and class keywords the same (aside from default privacy settings). Typically you might see code like this from a C developer transitioning into C++. It may also be a shortcut syntax for avoiding forward declaration (though that's just excessively lazy):