Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 15.21 #758

Open
UIysse opened this issue May 26, 2020 · 0 comments
Open

Exercise 15.21 #758

UIysse opened this issue May 26, 2020 · 0 comments

Comments

@UIysse
Copy link

UIysse commented May 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant