Skip to content

Instantly share code, notes, and snippets.

@hernandazevedo
Created March 29, 2019 12:53
Show Gist options
  • Save hernandazevedo/77f453f81daf968835a412ed3cdd4ea1 to your computer and use it in GitHub Desktop.
Save hernandazevedo/77f453f81daf968835a412ed3cdd4ea1 to your computer and use it in GitHub Desktop.
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