Site-www: 'Effective Dart: Design' page

Created on 24 May 2020  路  2Comments  路  Source: dart-lang/site-www

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鈥檛 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?

Most helpful comment

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

All 2 comments

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

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

Was this page helpful?
0 / 5 - 0 ratings