Created
March 16, 2019 22:23
-
-
Save Pharaoh00/8135969e5ca0a8bf1e245f6df25de37f 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Aula_23_02 | |
{ | |
class employee | |
{ | |
private string name = null; | |
private string last = null; | |
private int age = 0; | |
private string genre = null; | |
private string email = null; | |
//Constructor requer: Nome, Sobrenome, Idade e Genero | |
public employee(string name, string last, int age, string genre) | |
{ | |
this.name = name; | |
this.last = last; | |
this.age = age; | |
this.genre = genre; | |
this.email = string.Format("{0}_{1}[email protected]", this.name, this.last); | |
} | |
//Methods | |
public string get_name() | |
{ | |
return this.name; | |
} | |
public string get_last() | |
{ | |
return this.last; | |
} | |
public int get_age() | |
{ | |
return this.age; | |
} | |
public string get_genre() | |
{ | |
return this.genre; | |
} | |
public string get_email() | |
{ | |
return this.email; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment