This PR adds a new Square class to the Shapes repository. The Square class inherits from the base Shape class and implements the CalculateArea and CalculatePerimeter methods. Additionally, the Program.cs file is modified to include an example of creating a Square object and calculating its area and perimeter.
Summary
Added a new Square class in a new file named Square.cs in the Shapes directory.
The Square class inherits from the Shape class and implements the CalculateArea and CalculatePerimeter methods.
The CalculateArea method returns the side length squared, and the CalculatePerimeter method returns four times the side length.
Modified the Program.cs file to include an example of creating a Square object and calculating its area and perimeter.
Fixes #14.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds a new Square class to the Shapes repository. The Square class inherits from the base Shape class and implements the CalculateArea and CalculatePerimeter methods. Additionally, the Program.cs file is modified to include an example of creating a Square object and calculating its area and perimeter.
Summary
Fixes #14.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: