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,19 +4,19 @@ namespace OOP.Figures
{
public Circle(double radius)
{
this.radius = radius;
Radius = radius;
}
public double radius { get; set; }
public double Radius { get; set; }
public override double GetArea()
{
return Math.PI * Math.Pow(radius, 2);
return Math.PI * Math.Pow(Radius, 2);
}
public override double GetPerimeter()
{
return 2 * Math.PI * radius;
return 2 * Math.PI * Radius;
}
}
}

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);
}
}
}