composition relationship

hey guys i dont know ho to post a pictures in this forum bt am just gonna say it in words n hope am clear....i have two classes A n B and i have the uml diagram of the two classes with a composition relationship...the diamond is pointing from class B to class A...A<>---------B....de dotted lines are infact solid line and the diamond is solid..


questions
a) is der navigability from B to A?
b) can i impliment the relationship above by having class A have unique_ptr of type B as a data member.

it was an mcq question in the exam n am struggling wit the ansa...please help...and thanx in advance

a) No.
b) Yes.
tanx alot
Topic archived. No new replies allowed.