in reply to
Re: OO - Where to put a method
in thread
OO - Where to put a method
And then put GetAverageScore in the Answer class?
Comment on
Re: Re: OO - Where to put a method
Replies are listed 'Best First'.
Re: Re: Re: OO - Where to put a method
by
perrin
(Chancellor)
on Oct 07, 2003 at 22:36 UTC
It seems to me it would go in the Question class.
my $score = $question->average_score();
[reply]
[d/l]
In Section
Seekers of Perl Wisdom