Adding assignments

This commit is contained in:
2025-08-18 10:24:52 +02:00
commit 7b723f25f6
21 changed files with 734 additions and 0 deletions

24
Figures/Rectangle.cs Normal file
View File

@@ -0,0 +1,24 @@
namespace OOP.Figures
{
public class Rectangle : Shape
{
public Rectangle(double width, double height)
{
this.height = height;
this.width = width;
}
public double height { get; set; }
public double width { get; set; }
public override double GetArea()
{
return height * width;
}
public override double GetPerimeter()
{
return (height * 2) + (width * 2);
}
}
}