A getRadius() method that expects the input be a specific case is itself an anti-pattern. Operations should be exhaustive, so computing the area, drawing a shape, etc.
A getRadius() method that expects the input be a specific case is itself an anti-pattern. Operations should be exhaustive, so computing the area, drawing a shape, etc.