using System;
namespace Exercises
{
	public class Dog
	{

		public Dog(int theWeight, string theName)
		{
			this.weight = theWeight;
			this.name = theName;
		}

		public int Weight
		{
			get
			{
				return weight;
			}
			set
			{
				weight = value;
			}
		}

		public string Name
		{
			get
			{
				return name;
			}
			set
			{
				name = value;
			}
		}

		private int weight;
		private string name;
	}
	public class Tester
	{
		public void Run()
		{
			Dog milo = new Dog(13, "Milo");
			Dog frisky = new Dog(5, "Frisky");
			Dog laika = new Dog(25, "Laika");

			Dog[] dogArray = { milo, frisky, laika };

			// Wyświetlanie wartości elementów tablicy

			foreach (Dog d in dogArray)
			{
				Console.WriteLine("Pies {0} waży {1} kilogramów. ", d.Name, d.Weight);
			}

		}
		static void Main()
		{
			Tester t = new Tester();
			t.Run();
		}
	}
}
