soall

1

votes
2

answer
837

views

C++ sharing object between two class

Suppose I have two class: FirstContainer and SecondContainer They hold the same reference (pass in their constructor) to the class ThirdContainer. FirstContainer and SecondContainer have the following methods: - addMemberToThirdContainer - delMemberOfThirdContainer - getThirdContainerMembers W...
soall