public void AddShape(IVisitorShape shape) { mShapeLst.Add(shape); }
public override void VisitCube(IVisitorShape shape) { volume += shape.Volume; }
public override void VisitCyclinder(IVisitorShape shape) { volume += shape.Volume; }
public override void VisitCube(IVisitorShape shape) { amount += shape.Amount; }
public override void VisitCyclinder(IVisitorShape shape) { }
public override void VisitSphere(IVisitorShape shape) { }
public override void VisitCyclinder(IVisitorShape shape) { amount += shape.Amount; }
public abstract void VisitCyclinder(IVisitorShape shape);
public abstract void VisitCube(IVisitorShape shape);
public abstract void VisitSphere(IVisitorShape shape);