Let's introduce cats to the world of static blocks. First, in the Solution class, we'll create a Cat class with a public String field name, but without a constructor with parameters. Then in a static block, we'll create a Cat object and display the created cat's name on the screen.
Static modifiers and kittens
You must be signed in to leave a comment
6 August 2019, 13:05
What is the problem. Anyone can help?
Regina Support Team at CodeGym
6 August 2019, 14:36
In case you have questions related to the tasks, please post your inquiry at the section Help at our website.