Jul-26-2020, 05:43 PM
Good or bad design depends on the problem you are trying to solve. Global variables are usually bad, but sometimes they can lead to an elegant solution for the right kind of problems. Using a class with no instances is usually bad, but it can be an elegant way to implement a singleton.
With no information about your problem it is impossible to say if any design is good or bad.
With no information about your problem it is impossible to say if any design is good or bad.