posted 11 years ago
I don't know the reason why, but I feel uncomfortable instantiating the class containing the main method, as in this example:
It feels more natural to keep the main method in one class, and create a second class for the purpose of instantiation.
For example:
Either method works. Is there a reason to prefer one over the other?
Should I just learn to get over it?