
上QQ阅读APP看书,第一时间看更新
Abstraction
Following inheritance, abstraction is the process whereby we define a type and its essential characteristics, moving to specialized types from parent ones. The following also applies:
- Dart contains abstract classes that allow a definition of what something does/provides, without caring about how this is implemented.
- Dart has the powerful implicit interface concept, which also makes every class an interface, allowing it to be implemented by others without extending it.