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

5. Entity Relationships: Abstract Classes, Interfaces, and Exception Handling

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

In the previous chapter, you learned that entities do not exist in isolation. You saw some examples of inheritance. You will see more in a minute, although in different forms.

There are a few more types of relationships between classes. A relationship between each class is always defined beforehand so that we don’t have to use same code again and again. Like C#, PHP, Python, and Java, in Dart, the classes in a program can be related to each other. Identifying and establishing the relationships between them is an important ...

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.