At that point they are not that complicated, so I dont think creating an OCCUPATION class to subclass off of would be necesary.
This is called using a Servant class, ie having one classes' attributes and members thrown into the master class, even though they should be in a seperate object. Generally it's best to avoid this, all you save is a little bit of performance at the expense of breaking your encapsulation.
In reply to Re: Re: Re: Objects in PERL
by mugwumpjism
in thread Objects in PERL
by Vuud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |