Created
October 13, 2019 19:07
-
-
Save mvnp/8a46b1945281212e78cf2bc045284346 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
/** | |
* | |
* 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