User-Friendly Wrappers

To solve a different problem on my day job, I wrote a package called Mall::Instructor. Each instructor on the treatment mall has a profile. To get an instructor's profile, I offer the user these choices:

    my $m1 = Mall::Instructor->new();
    $m1->display_profile('Adams', 'Jones'); # selected data records
    $m1->display_profile();                 # all data records
    $m1->write_profile('Adams', 'Jones');   # selected data records
    $m1->write_profile();                   # all data records

How many different cases do I have to account for?

Previous Back to start of show Next
Slide: 20 mall_ins © 2003 James E. Keenan