private string name, address, location;
this.name = this.address = this.location = Convert.ToString(0);
public Hotel(string name, string address, string location)
this.location = location;
Console.WriteLine("Име на хотел: {0} \nАдрес: {1} \nGPS координати: {2}", this.name, this.address, this.location);
get { return name; } set { name = value; }
get { return address; } set { address = value; }
get { return location; } set { location = value; }
public static void Main()
Hotel h1 = new Hotel("Гранд Хотел Сoфия", "ул. Гурко 1, София 1000", "42.6940° N, 23.3246° E");
Console.Write("\n\nИме на хотел: ");
string temp = Console.ReadLine();
Console.Write("Адрес: ");
temp = Console.ReadLine();
Console.Write("GPS координати: ");
temp = Console.ReadLine();
Console.WriteLine("\nИме на хотел: " + h2.Name + "\nАдрес: " + h2.Address + "\nGPS координати: " + h2.Location);