in reply to
OO - Where to put a method
Sounds like you need an 'answer' class.
Comment on
Re: OO - Where to put a method
Replies are listed 'Best First'.
Re: Re: OO - Where to put a method
by
Jaap
(Curate)
on Oct 07, 2003 at 21:52 UTC
And then put GetAverageScore in the Answer class?
[reply]
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