using System; namespace Program { public class Program { public static void Main() { Punkt.Punkt punkt1 = new Punkt.Punkt(); punkt1.x = 100; punkt1.y = 200; Console.WriteLine("Wspolrzedna x = " + punkt1.PobierzX()); Console.WriteLine("Wspolrzedna y = " + punkt1.PobierzY()); } } } namespace Punkt { public class Punkt { public int x; public int y; public int PobierzX() { return x; } public int PobierzY() { return y; } } }