static void Main(string[] args) { int[] arr = new int[] { 3, -4, 5, -2, 7, 8, 4, 5 }; overClass new1 = new overClass(arr); overClass new2 = new overClass(new1); new1.print(new2); Console.ReadKey(); }
public void print(overClass lab) { Console.WriteLine($"Min number in array: {lab.Min}"); }
public overClass(overClass obj) { Min = obj.Min; }