Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

Level of Abstraction 2 https://faculty.runi.ac.il/arik/site/Clipasso.asp

Slide 3

Slide 3 text

Hints 3 ✅ ✅ ✅ ❌ ❌ 🤔

Slide 4

Slide 4 text

Hints 4 ✅

Slide 5

Slide 5 text

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); } }

Slide 6

Slide 6 text

TicTacToe

Slide 7

Slide 7 text

Parts 7 Engine (Br a in) M a in View (I/O) Bo a rd (D a t a ) Pl a yer (Controller)

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

M a in

Slide 10

Slide 10 text

View (I/O)

Slide 11

Slide 11 text

Bo a rd (D a t a )

Slide 12

Slide 12 text

Engine (Br a in)

Slide 13

Slide 13 text

Pl a yer (Controller) https://github.com/CSC3100/Game-TicTacToe

Slide 14

Slide 14 text

Example Multi-Threading

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Examples User Interfaces

Slide 21

Slide 21 text

JFrame 21

Slide 22

Slide 22 text

JFrame 22

Slide 23

Slide 23 text

JFrame 23

Slide 24

Slide 24 text

JFrame 24

Slide 25

Slide 25 text

JFrame 25

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Questions 27

Slide 28

Slide 28 text

Lab

Slide 29

Slide 29 text

Quiz 01 29 Diagram from this Code https://github.com/CSC3100/Pacman/tree/main

Slide 30

Slide 30 text

CSC 305 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.