This PR adds a new class named "ShapeFactory" to the Shapes.Library project. The ShapeFactory class implements the factory design pattern to generate desired shapes based on the input shape type.
Summary
Created a new class named "ShapeFactory" in the Shapes.Library project.
Added a static method "CreateShape" to the ShapeFactory class that takes a string parameter representing the desired shape type and returns an instance of the corresponding shape class.
Implemented a switch statement inside the CreateShape method to handle different shape types and instantiate the corresponding shape class based on the input.
Updated the README.md file to include instructions on how to use the ShapeFactory class to generate desired shapes.
Fixes #50.
🎉 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 class named "ShapeFactory" to the Shapes.Library project. The ShapeFactory class implements the factory design pattern to generate desired shapes based on the input shape type.
Summary
Fixes #50.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: