3 ms·
It is useful to talk about "Bicycle inherits from Car with NumWheels set to 2" and "Boat inherits from Car with Surface set to WATER and not GROUND" as examples
by lamontcg 4y ago
It is useful to talk about "Bicycle inherits from Car with NumWheels set to 2" and "Boat inherits from Car with Surface set to WATER and not GROUND" as examples of Liskov violation.