Encapsulate Field

There is a public field.

Make it private and provide accessors.

public String _name

image/svg+xml

private String _name;
public String getName() {return _name;}
public void setName(String arg) {_name = arg;}