We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75642ff commit 7679f56Copy full SHA for 7679f56
samples/snippets/csharp/tutorials/inheritance/shape.cs
@@ -64,7 +64,7 @@ public Circle(double radius)
64
Radius = radius;
65
}
66
67
- public override double Area => Math.Round(Math.Pow(Math.PI * Radius, 2), 2);
+ public override double Area => Math.Round(Math.PI * Math.Pow(Radius, 2), 2);
68
69
public override double Perimeter => Math.Round(Math.PI * 2 * Radius, 2);
70
@@ -112,6 +112,6 @@ public static void Main()
112
// Is Square: False, Diagonal: 15.62
113
// Square: area, 25; perimeter, 20
114
// Diagonal: 7.07
115
-// Circle: area, 88.83; perimeter, 18.85
+// Circle: area, 28.27; perimeter, 18.85
116
// </Snippet3>
117
-} // Namespace definition.
+} // Namespace definition.
0 commit comments