I want overrid setter method.But property is private.like:
in super class:
private float temperature;
public void setTemperature(final float temperature) {
this.temperature = temperature;
setFloat(temperatureLocation, this.temperature < 5000 ? (float) (0.0004 (this.temperature - 5000.0)) : (float) (0.00006 (this.temperature - 5000.0)));
}
I can not use private property in subclass
private property in ***Filter class become public
What is the motivation?
I want overrid setter method.But property is private.like: in super class: private float temperature; public void setTemperature(final float temperature) { this.temperature = temperature; setFloat(temperatureLocation, this.temperature < 5000 ? (float) (0.0004 (this.temperature - 5000.0)) : (float) (0.00006 (this.temperature - 5000.0))); } I can not use private property in subclass