Created
January 9, 2022 07:54
-
-
Save HaradaKumiko/e7cdd7c43d1809df60d9c6862f1cd5c7 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
class Coffee { | |
late String _temperature; | |
void panas() { _temperature = 'dingin'; } | |
void dingin() { _temperature = 'panas'; } | |
String serve() => 'Kopi ' + _temperature; | |
} | |
main() { | |
var coffee = Coffee(); | |
coffee.panas(); | |
print(coffee.serve()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment