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

CSC305 Lecture 04

CSC305 Lecture 04

Individual Software Design and Development
Object-Oriented Design II
(202510)

Avatar for Javier Gonzalez-Sanchez

Javier Gonzalez-Sanchez PRO

September 29, 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 305 Individual Software Design and Development Lecture 04. Object-Oriented Design II
  2. Problem 5 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 { A [] a = new A[5]; } 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 7 Engine (Br a in) M a in View

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

  5. CSC 305 Individual Software Design and Development Javier Gonzalez-Sanchez, Ph.D.

    [email protected] Summer 2024 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.