T
Tagore
hi,
I have worked mainly in C. I started programming in C++ just 2
weeks ago.
supoose following classes
class A
{
... //some members
...
};
class B
{
...........
........... //other members
A a[10];
..........
};
Now while updating my project, I need a new function which should be
defined in class A....but it need to acces private members of class
B.....
what should I do?
I have worked mainly in C. I started programming in C++ just 2
weeks ago.
supoose following classes
class A
{
... //some members
...
};
class B
{
...........
........... //other members
A a[10];
..........
};
Now while updating my project, I need a new function which should be
defined in class A....but it need to acces private members of class
B.....
what should I do?