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.
37 lines
576 B
37 lines
576 B
using System;
|
|
|
|
namespace ex_042_004_Keys_conventions
|
|
{
|
|
public class Nounours
|
|
{
|
|
public int ID
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Nom
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public DateTime DateDeNaissance
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int NbPoils
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Nounours {ID}: {Nom} ({DateDeNaissance:dd/MM/yyyy}, {NbPoils} poils)";
|
|
}
|
|
|
|
}
|
|
}
|