Hi everybody!
I've just joined the community:) and have a question
How to write the method count: such that, when invoked on an instance of
Counter, instance variable is set to the argument given to the message?
so that
Counter new count: 7
would set the value of a new Counter instance to 7
(It is a little exercise from
http://rmod-pharo-mooc.lille.inria.fr/MOOC/Exercises/Exo-Counter.pdf)
did you check the videos?
because this is shown
count: anInteger
counter := anInteger
Best wishes,
Kateryna
--
Using Opera's mail client: http://www.opera.com/mail/