I have 3 types of user in my forum app: regular
, member
and special
. They all have the same functionalities such as createPost
, but the member and special have more such as they can use customEmoji
on their post. Regular user have a limit on how many post they can make, while member and special don't have a limit.
Any ideas what design pattern should I use here? I'm relatively new to this, so I'm not sure on what to use.
I've tried using abstract class for user
and then another class called for regular
, member
and special
which extends user
.
Aucun commentaire:
Enregistrer un commentaire