Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC308B Lecture 09

CSC308B Lecture 09

Software Engineering I
UML Class Diagram
(202401) - two-days per week version

Javier Gonzalez-Sanchez

February 28, 2024
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs CSC 308 Software Engineering 1 Lecture 09: UML Class

    Diagrams Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227
  2. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    4 Relationships Association Directed Association Reflexive Association Multiplicity Aggregation Composition Generalization Realization
  3. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2023 |

    10 public class A extends B { C c1, c2; public A() { c1 = new C(); } public void method() { D d = new D(); d.working(); } } Public class X { public void m() { B var = new A(); double x – Math.sqrt(5); } } public class B implements E { public B() { C c1 = new C(); } public void method() { B b = new B(); b.sleep(); } } public class Y { A [] a = new A[5]; } Problem
  4. jgs

  5. jgs CSC 308 Software Engineering 1 Lab 09: Validation Dr.

    Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  6. jgs CSC 308 Software Engineering I Javier Gonzalez-Sanchez, Ph.D. [email protected]

    Winter 2024 Copyright. These slides can only be used as study material for the class CSC 308 at Cal Poly. They cannot be distributed or used for another purpose.