1.5. UML

In this lecture we look at...
[Section notes PDF 86Kb].

1.5.01. UML diagrams

  • Not just one type of diagram
  • ER Entities -> UML objects
  • Adds scope to include methods

a simple UML class

1.5.03. Simple UML relationship diagram

  • Classes
    • Attributes
    • Methods
  • Relationships
    • Participation
    • Cardinality
    • Roles

UML simple relationship diagram

1.5.04. UML inheritance

  • Notion of inheritance
    • Java parallel
    • 'is a' relationships
    • Database Student
      • is a Computer Science Student
        • is an Engineering Faculty Student
          • is a Student
            • is a Person
    • Inheritance hierarchies
  • UML diagrams can be used to show inheritance

UML class diagram, basic inheritance

1.5.05. UML diagram

  • Classes
  • Relationships
  • Inheritance

UML class diagram showing inheritance