• Klassendiagramm fuer Kino zeichnen

    Untitled

  • Klassendiagramm fuer Hotelverwaltung

    Untitled

  • Klassendiagramm fuer Autovermietung

    Untitled

  • Klassendiagramm fuer Mensaplan zeichnen

    Untitled

  • Klassendiagramm fuer Deutsche Bahn zeichnen

    Untitled

  • Situation gegeben. Wie wuerden Sie die Entwicklung anfangen?

    • Anforderungen sammeln
    • Architektur ueberlegen
    • Komponenten
    • Kosten
    • Organisation
  • Aggragation vs Komposition

    • Aggregation: white Rhombus. Engine is a part of Car, but can exist alone.

      Untitled

    • Komposition: black Rhombus. Teile koennen nicht separat von Hauptentity existieren. Wird Haus geloescht, kann die Wohnung separat nicht existieren

      Untitled

  • UML wann soll man Directed Association verwenden, und wann Undirected Association?

    • The arrows describe the ways you can navigate.

    • No arrow - both ways (each object has a link for associated objects/object set)

    • Car contains Passenger, but passenger have no information about the car

      Untitled

  • Was ist Mehrfachsvererbung?

    • Multiple inheritance is a feature in object-oriented programming (OOP) where a class can inherit properties and behaviors from more than one parent class. In other words, a class can have multiple superclasses.
    • extends classA, classB, classC…
    • Diamond problem
    • No multiple inheritance in Java, use interfaces
  • Was ist Containment-Beziehungen? Warum macht man das?

    • == Composition
    • Ziel: Lifecycle Management
    • Wir wissen, welche Objekte sind nicht mehr valid, wenn Hauptobjekt invalid ist.
  • Wie kann man in UML context mit Invariante hinzufuegen?

    • OCL Invariante fuer ein Context
  • Was sind Rollennamen in Klassendiagram?

    • A role name identifies an end of an association and ideally describes the role played by objects in the association.

      Untitled

  • Wofuer braucht man die Rollennamen?

    • Attributsnamen
    • Kann man beqem in OCLs verwenden