public float RetourRapport(int age, Gendre sexe) { if (sexe == Gendre.Homme) { if (age < 25) { return(2700f); } return(2300f); } else { if (age < 25) { return(2000f); } return(1900f); } }
public People(int age, string name, Gendre gendre) { _age = age; _name = name; _gendre = gendre; }
public Frog(int age, string name, Gendre gen) : base(age, name, gen) { }
protected Cat(int age, string name, Gendre gen) : base(age, name, gen) { }
public Animal(int age, string name, Gendre gen) { this.Age = age; this.Name = name; this.Gen = gen; }