Skip to content

UML Diagrams

Video Lecture

Coding Conventions UML Diagrams

 (Pay Per View)

You can use PayPal to purchase a one time viewing of this video for $1.49 USD.

Terms

  • One viewing session of this video will cost the equivalent of $1.49 USD in your currency.
  • After successful purchase, the video will automatically start playing.
  • You can pause, replay and go fullscreen as many times as needed in one single session for up to an hour.
  • Do not refresh the browser since it will invalidate the session.
  • If you want longer-term access to all videos, consider purchasing full access through Udemy, YouTube Memberships, or Amazon instead.
  • This Pay Per View option does not permit downloading this video for later viewing or sharing.
  • All videos are Copyright © 2019-2025 Sean Bradley, all rights reserved.

Overview

Unified Modeling Language (UML) Diagrams are used throughout this book to help describe the patterns.

Below are some example self describing UML diagrams.

The left part of the diagram shows the basic concept, and the right side shows a potential example usage.

A Basic Class

Basic Class

Directed Association

A filled arrow with a line.

ClassA uses ClassB or an object of ClassB.

ClassA calls a static class method, a static abstract method or a method/property/field from an object of type ClassB. E.g., The Person starts the Car engine.

Directed Association

A Class That Extends/Inherits A Class

An unfilled arrow, with a line pointing to the class that is being extended/inherited.

ClassA extends ClassB.

The extended class contains all the attributes/fields and methods of the inherited class, including its own extra methods, attributes/fields, overrides and overloads.

A Class That Inherits

A Class That Implements An Interface

An unfilled arrow, with a dashed line pointing to the interface that is being implemented.

ClassA implements ClassB.

A class that implements an interface must implement all the methods declared in the interface.

A Class That Implements

Aggregates

An unfilled diamond with a line and arrow head.

ClassA aggregates ClassB.

Library aggregates Books. Books and Library can exist independently of each other. Books can exist without the Library.

Aggregate

Composition

A filled diamond with a line and arrow head.

ClassA is composed of ClassB

Aeroplane can be composed of Wings and other parts. But an aeroplane is no longer really an aeroplane without its wings.

Composition

Pseudocode Annotation

A box with a dashed line and a circle placed near a class method.

Pseudocode is a plain language description of the steps in an algorithm and used to portray a concept without needing to write long lines of code.

Pseudocode Annotation