I have an array I want it to be a private member variable. The way my program works as implementing selection sort is, main method feeds in the size of the array, and the constructor passes in and creates the new array with given size.

I've done with in Java, but can't figure out in C++.
(After taking a look at other people's post on this web, I figured out I have to make my variable static)

Thank you.

[ArrayS.h]

```
public:
    ArrayS(void);
    ArrayS(int max);
    ~ArrayS(void);

private:
        static long a [0];  

```

[ArrayS.cpp]

```
ArrayS::ArrayS(void)
{

}

ArrayS::ArrayS(int max)
{
    long ArrayS::a [max];                 
    nElems = 0; 
}

```

Thank you.