T
TS
When have a class, but need some info that is contained in other class, is
it worth the overhead to instantiate both objects if you only need 2
properties, or let those other properties piggyback on the first class which
makes it not so OO?
Say you had a Home class & and HomeOwner class. If you had clicked on the
details of the home class, you would want to display all things about the
home, and maybe the homeOwner class' owner name property. So you would have
to load the whole HomeOwner class for a single property.
thanks
it worth the overhead to instantiate both objects if you only need 2
properties, or let those other properties piggyback on the first class which
makes it not so OO?
Say you had a Home class & and HomeOwner class. If you had clicked on the
details of the home class, you would want to display all things about the
home, and maybe the homeOwner class' owner name property. So you would have
to load the whole HomeOwner class for a single property.
thanks