Replace Type Code With Polymorphism

You have a type code that affects the behavior of a class.

Replace the type code with classes: one for each type code variant.

image/svg+xml Mountain Bike off_road_abilityprice type_code Rigid Mountain Bike off_road_abilityprice Front Suspension Mountain Bike off_road_abilityprice Full Suspension Mountain Bike off_road_abilityprice