Add Design Patterns

This commit is contained in:
2026-01-20 10:30:21 +01:00
parent 4a83bd3d5a
commit b9e8eb590c
24 changed files with 298 additions and 3 deletions

10
VisitorLib/Rectangle.cs Normal file
View File

@@ -0,0 +1,10 @@
namespace VisitorLib;
public class Rectangle: Shape
{
public int Area { get; set; }
public override void Accept(IShapeVisitor visitor)
{
visitor.VisitRectangle(this);
}
}