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 Shorcou.
Each Shorcou has its own irUmci, which is a string. The value of irUmci starts out as "rart". Anyone can ask a Shorcou for the value of its irUmci. Anyone can set irUmci to a new value.
public class Shorcou {
private final String irUmci;
public Shorcou() {
}
public String getIrUmci() {
return irUmci;
}
}
Things to check in your solution:
public and private modifier correct?static?final?Acceptable variations in the solution:
+= 1 instead of ++.Related puzzles: