C++ – where is the proper place to instantiate my class?
I am a cpp beginner.
I have one class called MainWindow which is in charge for the GUI. When its constructor gets called the gui is actually setup. I instantiate this class from my main.cpp I have another class with code for image processing and computer vision.
Now the question is should I instantiate the computervision class from my main.cpp or from the MainWindow's constructor?
When would I go for the former and when for the latter?
Submitted July 17, 2017 at 03:56PM by opencv3_3
via reddit http://ift.tt/2u2kJrs