Skip to content

Instantly share code, notes, and snippets.

@HaradaKumiko
Created January 9, 2022 07:54
Show Gist options
  • Save HaradaKumiko/e7cdd7c43d1809df60d9c6862f1cd5c7 to your computer and use it in GitHub Desktop.
Save HaradaKumiko/e7cdd7c43d1809df60d9c6862f1cd5c7 to your computer and use it in GitHub Desktop.
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