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

CSC509 Lecture 03

CSC509 Lecture 03

Software Design
Object-Oriented Design II
(202510)

Avatar for Javier Gonzalez-Sanchez

Javier Gonzalez-Sanchez PRO

September 30, 2025
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info o ffi ce: 14 -227

    CSC 508/9 Software Engineering (Design & Deployment) Lecture 03. Object-Oriented Design II
  2. Draw the Diagram 12 public class B implements E {

    public B() C c1 = new C(); } public void method(A a) { B b = new B(); b.sleep(); a.method(new D()); } } public class Y extends B { private A []a = new A[5]; private X var = new X(); protected Y instance; } public class A extends B { C c1, c2; public A() { c1 = new C(); } public void method(D d) { d.working(); } } public class X { private String s; public void m() { B var = new A(); double x – Math.sqrt(5); } }
  3. Parts 14 Engine (Br a in) M a in View

    (I/O) Bo a rd (D a t a ) Pl a yer (Controller)
  4. 28

  5. CSC 508/9 Individual Software Design and Development Javier Gonzalez-Sanchez, Ph.D.

    [email protected] Fall 2025 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.