concept extends in category dart

appears as: extends
Dart in Action

This is an excerpt from Manning's book Dart in Action.

Dart has interfaces just like Java and C#, but in Dart, you use the class structure to define an interface. This works on the basis that all classes define an implicit interface on their public members. Listing 1.3 defines a class called Welcomer and a top-level sayHello() function that expects a Welcomer instance. In addition to using the extends keyword to implement inheritance of the sort found in Java and C#, you can also use the interface defined on each class by using the implements keyword. The Greeter class implements the public methods of Welcomer, which allows it to be used in place of a Welcomer instance. This lets you concentrate on programming against a class’s interface rather than the specific implementation.

But your enterprise service needs more functionality in a User: for example, marking an account as expired and providing more robust password checking, such as confirming that the same password hasn’t been reused for the last five password changes. You can do this by using inheritance. Inheritance allows you to take an existing type, such as a User, and add more functionality to it by subclassing using the extends keyword. When inheriting a class, you can also specify new behavior for existing methods and properties by overriding them.