static void Main(string[] args) { Console.WriteLine("Get values from other methods"); testclass a = new testclass(1, 2, 3); Console.WriteLine(a); Console.ReadLine(); }
public testclass(testclass a) { a.x = x; a.y = y; a.z = z; }