Posted by William D McQuain on November 14, 2001 at 07:47:00:
In Reply to: Passing Cars to dispatcher posted by John on November 13, 2001 at 22:45:57:
: Without giving away too much detail, I have a list of cars declared in my main cpp file that I want to pass to my Dispatcher class when the program ticks (so the tow trucks can check locations, perform actions, etc). Does this violate encapsulation?
Forget encapsulation... does this make sense conceptually?
Let's see... I want a car towed from my driveway so I take the car to the TekTow (oops, I mean Hokie Hook) office and give it to their dispatcher?
Whatever the dispatcher receives, it isn't a car.
Post a Followup