![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
It looks like you are creating a database of info about cars - of car models? or of car instances? Either way, I think that you need at least two classes - a CarDatabase and Car. Info on individual cars should be stored in instances of class Car. Class CarDatabase should have a collection (array or hash) of Car instances, and methods for loading info from datafiles and storing it back to datafiles, a.k.a. serialization, and methods for searching, filtering, listing, e.t.c. Rudif In reply to Re: Advice on OO Program structure & organization
by Rudif
|
|