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.
23 lines
512 B
23 lines
512 B
// See https://aka.ms/new-console-template for more information
|
|
using System.Xml.Schema;
|
|
|
|
|
|
Console.WriteLine("Hello, World!");
|
|
|
|
Maison maison = new(12, "test");
|
|
|
|
Console.WriteLine($"L'adresse est : {maison.GetAdresse()}");
|
|
|
|
public class Maison {
|
|
private int prix;
|
|
private string Adresse { get; set; }
|
|
public Maison(int prix, string adresse)
|
|
{
|
|
this.prix = prix;
|
|
Adresse = adresse;
|
|
}
|
|
public string GetAdresse()
|
|
{
|
|
return Adresse;
|
|
}
|
|
} |