Created
March 1, 2023 17:07
-
-
Save ulisseshen/6c4d015164d990d33aaf257f5ae4aeb6 to your computer and use it in GitHub Desktop.
Classe pessoa com método toString()
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
class Pessoa { | |
String nome; | |
int idade; | |
Pessoa(this.nome, this.idade); | |
@override | |
String toString(){ | |
return "$nome,\t$idade"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment