Skip to main content

Implicit Interfaces and Abstract Classes

  • Chapter
  • First Online:
Web Programming with Dart

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics