-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmploye.cs
38 lines (33 loc) · 828 Bytes
/
Employe.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1.DemoA.NewFolder1
{
public partial class Employe
{
public int empId;
public string nameEmp;
public Employe(int id,string name)
{
this.empId = id;
this.nameEmp = name;
}
public void DisplayEmpInfo()
{
Console.WriteLine(this.empId+" "+this.nameEmp);
}
public override string ToString()
{
return $"";
}
static void Main(string[] args)
{
Employe emp = new Employe(25, "CDS");
Console.WriteLine(emp.empId);
Console.WriteLine(emp.nameEmp);
Console.ReadLine();
}
}
}