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