Abstract
In this chapter we’ll cover interfaces and abstract classes in Dart. We’ll also see the difference between implementing interfaces and extending from a parent class.When you define a class, Dart implicitly defines an interface that contains all members of the instance and methods of the class and of the rest of the interfaces that implements.In short, if you want to write a class A that supports the API of a class B without inheriting the implementation of B, the A class must implement the B interface. To do this, when you define the class you can add the word implements followed by the classes you want implement and define the interfaces implementation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Moises Belchin
About this chapter
Cite this chapter
Belchin, M., Juberias, P. (2015). Implicit Interfaces and Abstract Classes. In: Web Programming with Dart. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0556-3_19
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0556-3_19
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0557-0
Online ISBN: 978-1-4842-0556-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books