Perl Monk, Perl Meditation | |
PerlMonks |
Re: Beginner's Object Orientation Exercises?by buckaduck (Chaplain) |
on Mar 18, 2002 at 18:29 UTC ( [id://152548]=note: print w/replies, xml ) | Need Help?? |
I started out with something most people can relate to:
different types of documents. You can create a generic Document
class, and then a series of subclasses: Letter, Memo,
SummaryReport, DetailedReport, Thesis, Resume, Timesheet,
LetterOfComplaint,
whatever.
In my case, I made the code handle a lot of formatting tricks, and produce output in a variety of formats. Whatever you choose, I think the key is to make it something you might actually want to use. That's the only way you'll keep using it in the long run. buckaduck
In Section
Seekers of Perl Wisdom
|
|