public string time; // food time public Animals(AnimalType type, PowerSupplyType food_type, string name, int age, bool hungryState, string time) { this.type = type; this.food_type = food_type; this.name = name; this.age = age; this.hungryState = hungryState; this.time = time; }
public bool CheckPowerSupplyСompatibility(PowerSupplyType type) { return(PowerSupplyTypeCompatybility == type); }