Skip to content

Instantly share code, notes, and snippets.

@StephanyBatista
Last active April 20, 2019 22:46
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 StephanyBatista/c841fd23c1af2d5002278e1df78657db to your computer and use it in GitHub Desktop.
Save StephanyBatista/c841fd23c1af2d5002278e1df78657db to your computer and use it in GitHub Desktop.
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