Applying OOP in small open source project

MEPVIGREE

New Member
So my current understanding of classes are:Singleton for a class that will only ever be instantiated once.Static for a class that doesn't get instantiated but just exists.Regular? For a class that can get instantiated over and over.So I'm doing a small open source project and as for dealing with users, I thought of how I could deal with it, for example:Creating a user - I could instantiate a users object and then call a method create on it. Or I could have a singleton so the users object always exists and call create on that?I just think it seems sort of sloppy to create an object for each user related action, like updating a users credentials, would I want to instantiate another user object and then call a method update on it? Just confused about how to actually apply OOP, and the best way to do.Thanks for any/all help you guys can provide.
 
Top