Hi,
I would like to know if there's a way to avoid bad repetition like this one (I use PHP):
I have a User class:
class User{
private $conf;
private $photos = Array();
private $addresses = Array();
private $descriptions = Array();
...
public function...
Sorry if I bother you with this, but I'm a OOP newbie and I would like to know your opinion about that.
I'm developing a site which requires registration and where users can upload their fotos. The question is this:
I created a user class
Code:
class User{
private $username;
private...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.