Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Beginner's Object Orientation Exercises?

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

  • Comment on Re: Beginner's Object Orientation Exercises?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found