Last active
April 20, 2019 22:46
-
-
Save StephanyBatista/c841fd23c1af2d5002278e1df78657db to your computer and use it in GitHub Desktop.
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 Pessoa { | |
public string Nome { get; private set; } | |
public string Cpf { get; private set; } | |
public Pessoa(string nome, string cpf){ | |
if(nome == "") | |
throw new Exception("Nome Inválido"); | |
if(cpf == "") | |
throw new Exception("Cpf inválido"); | |
Nome = nome; | |
Cpf = cpf; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment