• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Association /aggregation/composition

 
Nilesh Deshpande
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am bit confused about the relation between association /aggregation/composition.

I can define the aggregation in following code. Please help me to define the other two.
Class A{
}
class B {
A a =new A();
}

Thanks in advance.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you go dude ! Its c++ but its UML all the same.

UML concepts
 
Bert Bates
author
Sheriff
Posts: 8900
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We're going to move this over to the intermediate forum - these topics aren't on the SCJP exam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic