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

CSC310 Lecture 06

Avatar for Javier Gonzalez-Sanchez Javier Gonzalez-Sanchez PRO
September 10, 2026
18

CSC310 Lecture 06

UML
(20260911)

Avatar for Javier Gonzalez-Sanchez

Javier Gonzalez-Sanchez PRO

September 10, 2026

Transcript

  1. CSC 3100 Software Engineering Lecture 06. Uni ied Modeling Language

    Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info f ffi o ce: 14 -227
  2. Structur l models of softw re displ y the org

    niz tion of system in terms of ) the p rts (items, elements, components) th t m ke up th t system nd b) their rel tionships. a a a a a a a a a a a 5 a a Structural models
  3. Class diagram Cl ss di gr ms show the cl

    sses in system • modi iers • Attributes • methods And the rel tionships between these cl sses: • Associ tion / Dependency • Aggreg tion / Composition • Gener liz tion / Speci liz tion / Re liz tion a a a a a a a a a a a a a a f a 7
  4. Problem public class B implements E { } public B()

    X x1 = new X(); } public void method(A a) { B b = new B(); b.sleep(); a.method(new D()); } public class Y extends B { A [] a = new A[5]; } 12 public class A extends B { C c1, c2; public A() { c1 = new C(); } public void method(D d) { d.working(); } } public class X { private Car s; public void m() { B var = new A(); double x – Math.sqrt(5); } }
  5. CSC 3100 Software Engineering Javier Gonzalez-Sanchez, Ph.D. [email protected] Fall 2026

    Copyright. These slides may be used only as study material for CSC 5100 within the California State University system. They may not be distributed or used for any other purpose.