Cats in the Universe

  • 2
In 2010, cats took control of the Internet, and in 3258 they achieved a soft coup of Planet PurPurr, which is at the center of the Galaxy Rush planetary system. A coup is soft when no one is against it. There was one problem: there were a lot of cats, and despite their dominant position, they essentially don't know how to count. Let's help them with a counter.
You can't complete this task, because you're not signed in.
Comments(4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
NastyaLevel 18 , Moscow
4 May, 15:13
I think, in this task a better way is to generate constructor that increase variable by one every time when instance of the class is made
HaeWon ChungLevel 17 , Boston
15 January, 22:55
I just repeat
Cat.count ++;
below each objects. I pass the task but for me it doesn't make sense. The code does not actually count the number of objects. It's ME that counts.
Cat.count ++;
must be somehow linked to the created object but I don't know how to do that.
Mike McKennaLevel 15 , Wilmington
21 June 2019, 22:21
The word public & count++ play large part in task
Bryce LindleyLevel 9 , Olympia
15 February 2019, 17:59
pull from method.. cat1.variable cat2.variable