December 2015
Beginner to intermediate
224 pages
6h 52m
English
It bears repeating: everything in Dart is an object. This includes even the simplest data such as numbers or the Boolean values true and false.
An object consists of a (possibly empty) set of fields, providing state, and a set of methods, providing behavior. The state of an object may be mutable or immutable. An object’s set of methods is never empty because all Dart objects have some behavior. Objects get their behavior from their class. Every object has a class; we say that the object is an instance of the class. Because every object has a class that determines its behavior, Dart is a class-based language.
Consider the Point class we encountered in the previous chapter.
Read now
Unlock full access