Skip to content

Instantly share code, notes, and snippets.

@StephanyBatista StephanyBatista/Pessoa.cs
Last active Apr 20, 2019

What would you like to do?
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
You can’t perform that action at this time.