3 ms·
Your comment is entirely specific to C#. Java has no such shortcuts, its setters and getters look identical to how they looked in 1994: private int id;
by Sharlin 6y ago
Your comment is entirely specific to C#. Java has no such shortcuts, its setters and getters look identical to how they looked in 1994:
private int id;
public void setId(int id) {
this.id = id;
}
public int getId() {
return id;
}