Skip to content

Instantly share code, notes, and snippets.

@paulostradioti
Last active June 28, 2018 02:42
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 paulostradioti/1bb39ad84c2c38d71c2f74152369bee4 to your computer and use it in GitHub Desktop.
Save paulostradioti/1bb39ad84c2c38d71c2f74152369bee4 to your computer and use it in GitHub Desktop.
Exemplo de como um construtor é definido
public class Dragon
{
int age;
public Dragon(int dragonAge)
{
age = dragonAge;
}
public bool Dracarys()
{
// Burn all the enemies
return true; //return true because they are all dead
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment