Hi
I have two unrelated questions regarding good object oriented practice:
1. how much should i put in a constructor: is it good to do all my initializations in it? when is it good to use init functions?
2. is it okay to use a singleton design pattern, and then use -new- to get a pointer to it from different places in the code?
thanks
ruthie
I have two unrelated questions regarding good object oriented practice:
1. how much should i put in a constructor: is it good to do all my initializations in it? when is it good to use init functions?
2. is it okay to use a singleton design pattern, and then use -new- to get a pointer to it from different places in the code?
thanks
ruthie