Quote Originally Posted by dsab123 View Post
so then it's not bad practice to have connections in main()? If not, then I guess my problem is solved.
There's nothing in my response and nothing in your question regarding main() or where you should/should not connect objects.

As Wysota says, you generally connect objects from somewhere outside the objects. If main() is the logical place to do that then do it there.