Created
March 29, 2019 12:53
-
-
Save hernandazevedo/77f453f81daf968835a412ed3cdd4ea1 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
void main() { | |
Pessoa p = Pessoa("Hernand"); | |
int a = 3; | |
int b = 2; | |
Calculadora calc = Calculadora(); | |
int c = Calculadora.soma(a, b); | |
print("Soma: $c"); | |
print("Soma: ${p.nome}"); | |
} | |
class Pessoa { | |
String nome; | |
Pessoa(this.nome); | |
} | |
class Calculadora { | |
static soma (a, b) { | |
return a + b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment