Static modifiers and kittens

  • 4
  • Locked
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.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jayaraj Kamaraj
Level 18 , Singapore, Singapore
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.