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
On Sat, Dec 10, 2016 at 1:39 AM, Kateryna Aloshkina
wrote:
> 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
> Count
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*
(