You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
657 B
32 lines
657 B
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Model
|
|
{
|
|
public class Animal
|
|
{
|
|
public string Nom { get; set; }
|
|
public string Info { get; set; }
|
|
|
|
public Animal(string nom, string info = "Aucune information")
|
|
{
|
|
Nom = nom;
|
|
Info = info;
|
|
|
|
}
|
|
|
|
public void AfficherlisteRace()
|
|
{
|
|
/*
|
|
for (int i = 0; i < nb_animal; i++) {
|
|
Console.WriteLine(Nom);
|
|
}
|
|
*/
|
|
}
|
|
public void afficherInfoUtile()
|
|
{
|
|
Console.WriteLine(Info);
|
|
}
|
|
}
|
|
}
|