Boards
anyone here any good at object-oriented programming?
I'm having trouble with the basic concepts. I'm making an image gallery.
I'm going to want a method which uploads a new image to the filesystem and stores the image's details in a database 'images' table.
Now, should this method be part of the gallery class (gallery->addnewimage) or part of the image class (image->createnewimage)?
Perhaps it should be a combination of both?
Maybe the gallery object calls its 'addnewimage' method which in turn instantiates a new image object and calls the various methods involved in uploading, resizing and finding a home for our new image...
I dunno. Anyone?