Created
November 29, 2020 04:55
-
-
Save karabanovbs/a0b23a9537d05681137d2aa009b3faae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 2.7 Генерики | |
// Написать класс с методом, приводящим полученное значение в строку. | |
// Не очень понял что имелось ввиду в задании | |
class Stringifier<T extends String> { | |
String stringify(T value) { | |
return value as String; | |
} | |
} | |
void main() { | |
Stringifier().stringify("13123"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment