Created
March 28, 2019 10:42
-
-
Save hernandazevedozup/5d4312ce3ced6daf97be2fc7252aa2e0 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