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

'Effective Dart: Design' page #2440

Closed
dev-aentgs opened this issue May 24, 2020 · 2 comments
Closed

'Effective Dart: Design' page #2440

dev-aentgs opened this issue May 24, 2020 · 2 comments

Comments

@dev-aentgs
Copy link
Contributor

Page URL: https://dart.dev/guides/language/effective-dart/design
Page source: https://github.com/dart-lang/site-www/tree/master/src/_guides/language/effective-dart/design.md

Description:
AVOID extending a class that isn’t intended to be subclassed.
Dart doesn't allow final class.
Like in java, in this case allowing the class to be marked as final would prevent another class from inheriting it.
What would be the side effects if this was allowed?

@kwalrath
Copy link
Contributor

Good question, but beyond the scope of the website. Maybe ask this on a Dart discussion group? https://dart.dev/community

@dev-aentgs
Copy link
Contributor Author

Thank you @kwalrath , asked on dart-lang #987

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

2 participants