public Duck(string a_name, Gender s, Birds mth, Birds fth) : base(a_name, s, mth, fth) { f_speed = 0; f_heigt = 0; s_speed = 0; s_deep = 0; }
public Duck(string a_name, Gender s, Birds mth, Birds fth, double a_f_speed, double a_f_heiht, double a_s_speed, double a_s_deep) : base(a_name, s, mth, fth) { f_speed = a_f_speed; f_heigt = a_f_heiht; s_speed = a_s_speed; s_deep = a_s_deep; }
public Birds(string a_name, Gender s, Birds mth, Birds fth) { this.Name = a_name; _gen = s; if (mth != null && mth._gen == Gender.male) { throw new Exception("Mother's gender must be female!"); } if (fth != null && fth._gen == Gender.female) { throw new Exception("Father's gender must be male!"); } _mother = mth; _father = fth; }
public Pinguin(string a_name, Gender s, Birds mth, Birds fth) : base(a_name, s, mth, fth) { s_speed = 0; s_deep = 0; }
public Pinguin(string a_name, Gender s, Birds mth, Birds fth, double a_s_speed, double a_s_deep) : base(a_name, s, mth, fth) { s_speed = a_s_speed; s_deep = a_s_deep; }
private void Clone(Birds other) { string a_name; a_name = other._name; }
public Eagle(string a_name, Gender s, Birds mth, Birds fth) : base(a_name, s, mth, fth) { f_speed = 0; f_heigt = 0; }
public Eagle(string a_name, Gender s, Birds mth, Birds fth, double a_f_speed, double a_f_heiht) : base(a_name, s, mth, fth) { f_speed = a_f_speed; f_heigt = a_f_heiht; }
public Сhicken(string a_name, Gender s, Birds mth, Birds fth) : base(a_name, s, mth, fth) { }
public Birds(Birds other) { Clone(other); }