In this case the instance
Func
will be created/initialized only when the construction is done, but you are invoking a method of the instance
Func
before its construction through Fun.getName(),getSexo etc .
I am not sure what you are trying to do here. Looks like you are confused with the constructor overrides available in the 'Funcinario' class
It should be something like this
private void button1_Click(object sender, EventArgs e)
{
Funcionario Func = new Funcionario();
string name = Func.getName();
string sex = Func.getSexo();
}