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

CSC305 Lecture 06

CSC305 Lecture 06

Individual Software Design and Development
Design
(202409)

Javier Gonzalez-Sanchez

October 03, 2024
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info office: 14 -227 CSC 305

    Individual Software Design and Development Lecture 06. Design
  2. To be Continued … 3 trace() debug() info () warn

    () error() message 01 message 02 message 03 message 04 message 05 Logger Appender Appender Appender
  3. Problem public class B implements E { public B() {

    C c1 = new C(); } public void method() { B b = new B(); b.sleep(); } } 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); } }
  4. 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.