static void Main(string[] args) { Punkt p1 = new Punkt(); Punkt p2 = new Punkt(20, 40); Kolor kolor = new Kolor(20, 30, 100); Console.WriteLine(kolor.getX()+" "+kolor.getY()+" "+kolor.pobierzKolor()); kolor.UstawX(200); Console.WriteLine(kolor.getX() + " " + kolor.getY() + " " + kolor.pobierzKolor()); Console.ReadLine(); }
public void pobierzWsp(Punkt nazwa) { x = nazwa.x; y = nazwa.y; }