Exemple #1
0
 public abstract void Visit(Circle shape);
Exemple #2
0
 public override void Visit(Circle shape)
 {
     Console.WriteLine($"{shape.GetType().Name} 的面积是:" + Math.PI * shape.Radius * shape.Radius);
 }