You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would argue that Rectangle would inherit from square which inherits from shape.
Instead, you wrote that square inherits rectangle which inherits from shape.
If you think about it, you can have a square with just one side distance member.
You'd need two for a rectangle. To me, rectangle is more elaborate than square. Interested in hearing what you think about this tho.
Cheers and thanks a lot for these great exercises you've put out there.
The text was updated successfully, but these errors were encountered:
Hello,
I would argue that Rectangle would inherit from square which inherits from shape.
Instead, you wrote that square inherits rectangle which inherits from shape.
If you think about it, you can have a square with just one side distance member.
You'd need two for a rectangle. To me, rectangle is more elaborate than square. Interested in hearing what you think about this tho.
Cheers and thanks a lot for these great exercises you've put out there.
The text was updated successfully, but these errors were encountered: