Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
An object can extend a class and/or one or more traits. The result is an object of a class that extends the given class and/or traits, and in addition has all of the features specified in the object definition.
One useful application is to specify default objects that can be shared. For example, consider a class for undoable actions in a program.