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
- 4
Locked
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Jayaraj Kamaraj
6 August 2019, 13:05
What is the problem. Anyone can help?
0
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.
0