Making sure it uses Microsoft Code Convention
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user