122
var shapeCalculator = new Solution.ShapeCalculator();
1
using System;
2
3
namespace Problem
4
{
5
internal interface IShape
6
{
7
void Render();
8
}
9
internal class Circle : IShape
10
{
11
public double Radius { get; init; }
12
13
public Circle(double radius)
14
{
15
Radius = radius;
16
}
17
18
public void Render()
19
{
20
Console.WriteLine("Rendering circle");
21
}
22
}
23
internal class Rectangle : IShape
24
{
Cached Result