Skip to content

Instantly share code, notes, and snippets.

@paulostradioti
Last active June 28, 2018 02:42
Show Gist options
  • 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