LAST Condition not verifying. What is that condition can Anyone explain?
package com.codegym.task.task04.task0407;
/*
Cats in the Universe
*/
public class Solution {
public static void main(String[] args) {
Cat cat1 = new Cat();
cat1.count++; //write your code here
Cat cat2 = new Cat();
//write your code here
cat2.count++;
Cat.count=cat1.count+cat2.count;
System.out.println("The cat count is " + Cat.count);
}
public static class Cat {
public static int count = 0;
Cat()
{
count++;
}
}
}