Example #1
0
 public override void VisitRectangle(Rectangle r)
 {
     Result += r.TopLeft.X + r.Width;
 }
Example #2
0
 public override void VisitRectangle(Rectangle r)
 {
     Result += r.TopLeft.Y + r.Length;
 }
Example #3
0
 public abstract void VisitRectangle(Rectangle r);
Example #4
0
 public override void VisitRectangle(Rectangle r)
 {
     Result += r.Area;
 }