eysidi
Explore posts from serversDependency Inversion
let's consider this is an interview question
You get
Vector2 position
as argument, create classes/interfaces for Shape where each shape takes different number of position arguments
Circle -> 1
Square -> 2
Triangle -> 3
MyWeirdShape -> N
What classes/interfaces would you create that applies SOLID40 replies