Where about should my main class be created in a project?
Posted
by Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2010-05-02T02:04:30Z
Indexed on
2010/05/02
2:07 UTC
Read the original article
Hit count: 291
The problem is where a class should be created in my code. An example is I have a UI class and a main logic class that controls other objects.
Should the main logic class create the UI object, or should the UI object create the instance of the main logic class?
An explanation of which method is best and why would be ideal.
Thanks.
© Stack Overflow or respective owner