instantiation

BioHazard90

Solid State Member
Messages
8
Code:
class MyProgram
{
    static void Main()
    {
        int[] integers;            // declare array
        integers = new int[10];    // size array
    }
}

In which line is the array actually instantiated?
 
I would agree, The first line simply tells the computer that memory is going to be used, but the second line is where memory is allocated for the variable and given a pointer reference.
 
Back
Top Bottom