niz tion of system in terms of ) the p rts (items, elements, components) th t m ke up th t system nd b) their rel tionships. a a a a a a a a a a a 5 a a Structural models
sses in system • modi iers • Attributes • methods And the rel tionships between these cl sses: • Associ tion / Dependency • Aggreg tion / Composition • Gener liz tion / Speci liz tion / Re liz tion a a a a a a a a a a a a a a f a 7
X x1 = new X(); } 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]; } 12 public class A extends B { C c1, c2; public A() { c1 = new C(); } public void method(D d) { d.working(); } } public class X { private Car s; public void m() { B var = new A(); double x – Math.sqrt(5); } }
Copyright. These slides may be used only as study material for CSC 5100 within the California State University system. They may not be distributed or used for any other purpose.