- #1
magnifik
- 360
- 0
how can i access the private variables of a class from another class?
for example...
for example...
Code:
class One{
public:
One();
private:
int array[6][7]
};
class Two{
public:
Two();
private:
void printNumbers();
};
void Two::printNumbers(){
// i want to access the array in class One here
}