Skip to content

Instantly share code, notes, and snippets.

@mvnp
Created October 13, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvnp/8a46b1945281212e78cf2bc045284346 to your computer and use it in GitHub Desktop.
Save mvnp/8a46b1945281212e78cf2bc045284346 to your computer and use it in GitHub Desktop.
/**
*
* https://dartpad.dartlang.org/
*
*/
class Pessoa
{
String nome;
int idade;
double altura;
void dormir(){
print("$nome está dormindo!");
}
void aniver(){
idade++;
}
}
/**
* https://dartpad.dartlang.org
*/
void main(){
String algumaCoisa = "valor";
Pessoa cliente = new Pessoa();
cliente.nome = "Marcos Vinicius";
cliente.idade = 33;
cliente.altura = 1.65;
print(cliente.nome);
print(cliente.idade);
print(cliente.altura);
cliente.aniver();
print(cliente.idade);
cliente.dormir();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment