Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 519 Bytes

note.md

File metadata and controls

10 lines (5 loc) · 519 Bytes

in uml ( unified model language) we have 3 different type of relation between classes . inheritance composition & aggregation. dependency

suppose we have base class called Animal with different attribute such as name , age and two different subclass called Lion & Elephant - and defined another class called Zoo with attribute of List of Animal and we have method printAnimalNames

we use Zoo Object in Main class

img.png