Classes, pointers
will this work?
1 2 3 4 5
|
class apple {
...
int * locationOfSeed;
...
};
|
Yes.
1 2 3 4 5
|
class apple {
//...
int * locationOfSeed;
//...
};
|
In c++ class members and methods are private by default.
I knew. I just didn't know if pointers could be members.
Topic archived. No new replies allowed.