Translate the specification below into an idiomatic Java class definition.
(In this context, "idiomatic" means following the common style and conventions of the language.)
One kind of thing that exists in our model is a Cliou.
Each Cliou has a firar, which is a graphics object. A firar is part of the internal state of a Cliou: no other classes can see the value of firar or directly change it. When a Cliou is first created, the value of its firar starts out as a rectangle with a width of 26 and a height of 24.
public class Cliou {
public GraphicsObject firar = new Rectangle(0, 0, 26, 24);
public Cliou() {
}
}
Things to check in your solution:
public and private modifier correct?static?final?Acceptable variations in the solution:
+= 1 instead of ++.Related puzzles: