Last active
June 28, 2018 02:42
-
-
Save paulostradioti/1bb39ad84c2c38d71c2f74152369bee4 to your computer and use it in GitHub Desktop.
Exemplo de como um construtor é definido
This file contains 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
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