I have an UI
module that will expose only one class - UserInterface
. The class will be responsible for collecting user input and providing output (command line UI style). From logical way of thinking, I'd never need more than one instance of the UserInterface
class.
Should I enforce only one instance using design like singleton pattern or just don't create more instances (sounds like a bad design to me)?
Aucun commentaire:
Enregistrer un commentaire