The library to find area of the shape.
It takes the shape parameters on input and provides the client with the area on the output:
This library is used to find the area of the shapes. I've tried to make architecture flexible to add new shapes using SOLID practice.
We use Factory Method to receive the concrete shape and Builder pattern to "build" the shape.
The client works with the interface - clean contract that allows him to get the area. He "doesn't know" about the type of the shape and about interface.
The project contains auto tests.