-
-
Save pawelpluta/4cba62250c632e725084faa545b526f7 to your computer and use it in GitHub Desktop.
Article: The OOP has been explained wrongly to you - solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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