示例#1
0
 public Baby(string name, DateTime birthdate)
 {
     _name    = name;
     Months   = CountBabyMonths(birthdate);
     Birthday = new Birthday(birthdate);
 }
示例#2
0
 public Baby(string name)
 {
     _name    = name;
     Months   = 0;
     Birthday = new Birthday(DateTime.Now);
 }
示例#3
0
 // can you please explane why you used an Overide in the ToString methode!!
 //
 // so it's alredyy'created somewhere and can't be change it unlesse using the override keyword!!
 // XD LOOOOL
 // come on storm , count to 5 XD
 // 1
 // 2
 // 3
 // 4
 // 5
 // done
 public Baby()
 {
     _name    = "John";
     Months   = 0;
     Birthday = new Birthday(DateTime.Now);
 }