Created
January 19, 2019 16:35
-
-
Save Urdzik/262b6b6dad38be68fc29c30e2d7360b7 to your computer and use it in GitHub Desktop.
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
public class Square<T extends Number> { | |
private T value; | |
public Square(T value) { | |
this.value = value; | |
} | |
public T getValue() { | |
return value; | |
} | |
public void setValue(T value) { | |
this.value = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment