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

CSC308 Lecture 10

CSC308 Lecture 10

Software Engineering I
UML Class Diagram
(202301)

Javier Gonzalez-Sanchez

October 10, 2022
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

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

    Diagram I Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  2. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2023 |

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

    16 Office Hours Tuesday and Thursday 3 - 5 pm But an appointment required Sent me an email – [email protected]
  4. jgs

  5. jgs CSC 308 Software Engineering 1 Lab 10: UML Class

    Diagram Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  6. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2023 |

    20 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]; } Lab
  7. jgs CSC 308 Software Engineering I Javier Gonzalez-Sanchez, Ph.D. [email protected]

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