[Solved] Reference data of Class B from another Class A in C# [closed]
You have a couple of points of confusion. First, in Class A, the member variable Array 1 defaults to private access, so you cannot “see” it from Class B. Secondly, good design would require you to present Array 1 as a property of Class A as follows: class A { int[] array1; public int[] TheArray … Read more