Hi!
I want to build up a nested object model that don't expose the lower classes directly to the caller.
For example if the top object is Car
If want to call it like: Car.Seat.Color=2, or Car.Door.Left.Lock
I don't want the class Seat/Door to be directly visible to the the caller, but only through the Car object.
I also want the Seat/Door class to be in a separate class file for easier update, and not the whole code inserted into the Car code.
I looked at implementing it using a Property in the Car object (worked in VB6), but the Seat class must then be visible (Public) otherwise it reports an error.
Of course this example is just made up, but it's easier to understand then![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I want to build up a nested object model that don't expose the lower classes directly to the caller.
For example if the top object is Car
If want to call it like: Car.Seat.Color=2, or Car.Door.Left.Lock
I don't want the class Seat/Door to be directly visible to the the caller, but only through the Car object.
I also want the Seat/Door class to be in a separate class file for easier update, and not the whole code inserted into the Car code.
I looked at implementing it using a Property in the Car object (worked in VB6), but the Seat class must then be visible (Public) otherwise it reports an error.
Of course this example is just made up, but it's easier to understand then