Hi!
I need to khow all the ways possible to communicatie between tow classes.
I need a way to call a function of a class from a function of another class.
Many thanks!
Printable View
Hi!
I need to khow all the ways possible to communicatie between tow classes.
I need a way to call a function of a class from a function of another class.
Many thanks!
Could you be a bit more specific? What do you mean with communication?
If you have two classes A and B you can call a method of A from a method of B if either an Object of class A is a member of B or there is an Object of class A inside the method of B:
Code:B::SomeMethodOfB()
{
A objA;
objA.SomeMethodOfA();
}