-
Notifications
You must be signed in to change notification settings - Fork 0
/
Khalle.cs
27 lines (22 loc) · 842 Bytes
/
Khalle.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
namespace A7
{
public class Khalle : ICitizen ,ITeacher
{
private string _Name;
private string _NationalId;
private Degree _TopDegree;
private string _ImgUrl;
public string Name { get => _Name;set =>_Name=value; }
public string NationalId { get => _NationalId; set => _NationalId=value; }
public Degree TopDegree { get =>_TopDegree; set => _TopDegree=value; }
public string ImgUrl { get =>_ImgUrl;set => _ImgUrl=value; }
public string Teach()=>$"{nameof(Khalle)} {this.Name} is teaching";
public Khalle( string nationalid, string name, string imgurl,Degree topdegree)
{
this.Name = name;
this.NationalId = nationalid;
this.TopDegree = topdegree;
this.ImgUrl = imgurl;
}
}
}