O'Reilly logo

Dart in Action by Chris Buckett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Defining classes and libraries

This appendix discusses building classes and using libraries and privacy.

B.1. Classes and interfaces

Dart is a class-based, object-orientated language with single inheritance and multiple interfaces. Dart has explicit classes and implicit interfaces: that is, a class definition implicitly defines an interface on its public properties and methods that other classes can implement.

 

Note

In the initial release of Dart, there were explicit interfaces defined using the interface keyword. After feedback from Dart’s early adopters, it was discovered that because an abstract class definition also defines an interface, the interface keyword was redundant.

 

B.1.1. Defining classes

The class keyword is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required