Object model design: collections on classes
- by Luke Puplett
Hi all,
Consider Train.Passengers, what type would you use for Passengers where passengers are not supposed to be added or removed by the consuming code?
I'm using .NET Framework, so this discussion would suit .NET, but it could apply to a number of modern languages/frameworks.
In the .NET Framework, the List is not supposed to be publicly…