Dependency Inversion
Hello all, I had asked this before and was answered I need to implement dependency inversion
I have
The problem is: each shape uses
So I need an interface, right
Now my problem is, how do I implement this in my
I have
Shape abstract class and and interface which is responsible for drawing the shape.The problem is: each shape uses
position to calculate coordinates, for circle it would be single Vector2 for square, rectangle etc it would be 2 and for triangle it would be 3.So I need an interface, right
Now my problem is, how do I implement this in my
Shapeclass