public Date(int d,int m,int y)
public int compareTo(Date d)
public override string ToString()
return this.day+"/"+this.month+"/"+this.year;
public Passport(string na,int nu,Date ED)
this.ED=new Date(ED.getDay(),ED.getMonth(),ED.getYear());
public Passport(Passport p)
this.ED=new Date(p.ED.getDay(),p.ED.getMonth(),p.ED.getYear());
public bool isValid(Date d)
if (this.ED.compareTo(d)>0)
public override string ToString()
return " name: "+this.name+"\n number: "+this.number+"\n ED: "+this.ED;
public traveler(Passport p,bool a)
public bool check(Date a)
public override string ToString()
return this.p+"\n paid: "+this.pay;
public commands(string a,traveler b)
Console.Write("see you soon");
Console.Write("aint good at math");
if(this.a=="how is the weather")
Console.Write("no idea");
if(this.a=="what's your name")
if(this.a=="how old are you")
Console.Write("i'm older than time itself");
public void addcomment(string a,string b)
public static void Main()
Date d2=new Date(1,2,2003);
string b3=Console.ReadLine();
Passport p1=new Passport("daniel",213141,d2);
traveler a=new traveler(p1,true);
commands m=new commands(b3,a);
m.addcomment("what do you like to do","i like wasting my priceiuse on dummies like you ");