Why would Square inheriting from Rectangle be problematic if we override the SetWidth and...
Channel: Roel Van de Paar
Date: 2022-09-19

Software Engineering: Why would Square inheriting from Rectangle be problematic if we override the SetWidth and SetHeight methods?

Helpful?  Please support me on Patreon: https://www.patreon.com/roelvandepaar

With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under CC BY-SA https://meta.stackexchange.com/help/licensing | Music: https://www.bensound.com/licensing | Images: https://stocksnap.io/license & others | With thanks to user yoozer8 (softwareengineering.stackexchange.com/users/34339), user Warbo (softwareengineering.stackexchange.com/users/112115), user user793468 (softwareengineering.stackexchange.com/users/125730), user The Spooniest (softwareengineering.stackexchange.com/users/101974), user Steve Jessop (softwareengineering.stackexchange.com/users/18658), user Stephen (softwareengineering.stackexchange.com/users/97122), user lrn (softwareengineering.stackexchange.com/users/129424), user Euphoric (softwareengineering.stackexchange.com/users/56655), user Eric Lippert (softwareengineering.stackexchange.com/users/6505), user Doval (softwareengineering.stackexchange.com/users/116461), user Deduplicator (softwareengineering.stackexchange.com/users/155513), user Danubian Sailor (softwareengineering.stackexchange.com/users/11463), user Cormac Mulhall (softwareengineering.stackexchange.com/users/91953), and the Stack Exchange Network (softwareengineering.stackexchange.com/questions/238176). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com