Here try this
class MainClass
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
BaseClass MyObject = new BaseClass();
string UserInput = "1";
if (UserInput == "1")
{
MyObject = new Class1()...
Here ...
you need to instantiate every instance of C to see it contain cells with 200 int
so your class B will look like this
public class B
{
public C[] c;
public int x;
public B(int num)
{
x = num;
c = new C[num];
for(int i=0; i<num;i++)
{
c[i]= new C();
}
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.