O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Relationships

A relationship between two classes is a UML entity that represents the fact that the classes are somehow related to each other. Examples of relationships are:

association— class A is associated with class B.

aggregation— class A aggregates class B.

inheritance— class A inherits from class B.

realization— class A implements interface IB.

We will give examples of all these types of relationships shortly.

We can classify relationships in two general categories: has-a type of relationships (when we can say that an object of type A has an object of type B), and is-a relationships (when we can say that an object of type A is also of type B). Association and aggregation are has-a relationships. Inheritance and realization are is-a type ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required