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 thatCounter 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)


Best wishes,
Kateryna

Reply via email to