good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The main concept in OO is that you construct a "Class" - representing generic properties, then you "Instantiate" one or more instances of that class.
In your case, the "Class" that stands out is "Movie" (Note - this is singular). You would instantiate an instance of the 'Movie" class by : For your case, it would also be helpful to have a different class for a COLLECTION of movies (and to enable search). Let me know if this is heading in a direction that means something to you. I'm sure other monks will also chime in and offer more detailed code. "You're only given one little spark of madness. You mustn't lose it." - Robin Williams In reply to Re: How do I go from procedural to object oriented programming?
by NetWallah
|
|