Is it possible to hide a exposed mutator on a public interface when it is presented to a client?
i.e.
Package foo;
Public class Bar
{
private String field;
public void setField(String field)
{
this.field = field;
}
public String getField()
{
return field;
}
}
I only want getField to be exposed, but have classes outside this
pacakge that need to have access to setField.
Thanks,
Doug
