Just a general question:
When I program in oop and I want to have a class user and another one which is called admin, should I use inheritance for this?
I mean: the user has certain capabilities but the admin has more (no kidding

)
Is it ok to create a class "user" with a number of basic methods and then create a class "admin" which extends "user" and contains some extra methods. (it uses all the same members as the "user" class)
Or should I just create "admin" class and use an instance of the "user" class as member?
And can I use a protected member from the "user" class like this in the "admin" class: parent::variable ?? or is it $parent::variable ?? (like in $this->variable)
Thanks for any help.
regards,
Lieven