I need to model the classes of a system where you have 2 types of User, the common user and the administrator, what is the best way to model this? Well I'll specify the attributes that each one needs in my application:
Common User: name, login, password, email, age, address etc ...
Administrator: name, login, password, email ...
What is the most correct way to model yourself? I thought of the following:
Abstract Class User: name, login, password, email.
Common User class inherits User, and will have its peculiarities.
Class administrator inherits User, and has nothing to +.
Is it correct for the administrator to be without any particularity? because if it inherits User, is already done, ie the administrator class will go blank, is this correct? if not the best way? Thank you