public void RunVisitor(IShapeVisitor visitor) { foreach (IShape shape in mShapes) { shape.RunVisit(visitor); } }
public abstract void RunVisit(IShapeVisitor visitor);
public override void RunVisit(IShapeVisitor visitor) { visitor.VisitCube(this); }