Download presentation
Presentation is loading. Please wait.
1
Summary of the lecture We introduced the instantiation dependency –This is a binary relationship (a relationship between two classes). –It is directional, from a source class to a target class –Only the definition of the source class is affected by the presence of the relationship (this is how we define the source class in a relationship in general) –Example is on next two slides of an instantiation dependency between classes A (source) and B (target)
2
Instantiation Dependency in UML
3
class A – the source class package pkg; public class A { public A() { new B(); }
4
class B – the target class package pkg; public class B { public B() { }
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.