© Sanjib Sinha 2020
S. SinhaQuick Start Guide to Dart Programminghttps://doi.org/10.1007/978-1-4842-5562-9_4

4. Inheritance and Mixins in Dart

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

One of the key features of object-oriented programming is that you can extend your classes. You extend a class to create another class, and the extended class is known as a subclass . The subclass inherits reference variables and class methods from the parent class, which is known as a superclass .

The properties of the parent class are inherited by the child class; because the properties from the parent class are extended to the child class, the parent class is also called the base class. For the same reason, the child class is known as the derived class, since ...

Get Quick Start Guide to Dart Programming: Create High-Performance Applications for the Web and Mobile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.