S
Surya Kiran
Hi
I'm a newbie to c++
here is my problem.
I've two classes
class A and class B. and i've a main function
main function creates an instance of class A by defining like this.
int main()
{
...
A *newa = new A () ;
}
now in class B can i access the same newa instance of class A.
I want every instance of class B to access the newa instance of class A.
how can i do that..
Thanks in advance.
Surya
I'm a newbie to c++
here is my problem.
I've two classes
class A and class B. and i've a main function
main function creates an instance of class A by defining like this.
int main()
{
...
A *newa = new A () ;
}
now in class B can i access the same newa instance of class A.
I want every instance of class B to access the newa instance of class A.
how can i do that..
Thanks in advance.
Surya