I used a class called 'City' & there will only be 1 city in the entire game; will it be beneficial to create an instance, if only 1 or a singleton.
The class itself will contain methods that won't all be static, & I've read that the singletons themselves consist of static attributes and methods only & can be bad practice or am I mistaken?
Aucun commentaire:
Enregistrer un commentaire