Making sure it uses Microsoft Code Convention

This commit is contained in:
2025-08-18 10:33:44 +02:00
parent 7b723f25f6
commit 16fc35e161
10 changed files with 36 additions and 36 deletions

View File

@@ -4,21 +4,21 @@ namespace OOP.Figures
{
public Rectangle(double width, double height)
{
this.height = height;
this.width = width;
Height = height;
Width = width;
}
public double height { get; set; }
public double width { get; set; }
public double Height { get; set; }
public double Width { get; set; }
public override double GetArea()
{
return height * width;
return Height * Width;
}
public override double GetPerimeter()
{
return (height * 2) + (width * 2);
return (Height * 2) + (Width * 2);
}
}
}