Skip to content

Instantly share code, notes, and snippets.

@pawelpluta

pawelpluta/Programme.java Secret

Last active Oct 8, 2020
Embed
What would you like to do?
Article: The OOP has been explained wrongly to you - solution
class Programme {
private final Integer temperature;
private final Integer spinSpeed;
Programme(Integer temperature, Integer spinSpeed) {
this.temperature = temperature;
this.spinSpeed = spinSpeed;
}
Integer getTemperature() {
return temperature;
}
Integer getSpinSpeed() {
return spinSpeed;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment