Creating a nested class fails the 3rd task condition with the error: "Be sure that the program has a Cat class."
Creating the Cat class in its own Cat.java file fails the 3rd task condition with the error: "Be sure the Cat class is public."
package en.codegym.task.pro.task11.task1116;
/*
Correct class
*/
public class Solution {
public static void main(String[] args) {
Cat cat = new Cat();
System.out.println(cat.name);
}
// public static class Cat {
// String name = "Tom";
// }
}