I want to utilize objects in the best way possible but I also want to follow good design principles. I could use some
advice on the length of time I stay in the object itself.
Example.. I have an object that is subclassed for 50 different states. Within the code, there is an outer and inner loop
whereby the outer loop is in the master table and the inner loop is with the children. Each subclass does some specific
i/o but the majority of the work is done from the methods in the base class.
Should the calling prg control these loops and call methods withing the object or should the calling prg go into the
object and let all the looping and other work be handled by the object itself? There is alot of low-level i/o as well in
the methods.
I can here my PROF going crazy over letting the object do all the work.. eg staying within the object the entire time.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement