B
Brian Dumas
This is a little long, sorry.
Let's say I have a class
class TMyClass
{
void funca();
void funcb();
};
and then I have objects
TMyClass* A = new TMyClass;
TMyClass* B = new TMyClass;
TMyClass* C = new TMyClass;
Sometimes, I need to call all three objects funca, like this :
A->funca();
B->funca();
C->funca();
So finally to the question - is there a way to combine these objects in a
"Meta" object that could do
something like this :
TMyClass* Meta=new TMyClass;
Meta->funca();
and have it run A, B, and C objects funca called?
THanks, Brian Dumas
Let's say I have a class
class TMyClass
{
void funca();
void funcb();
};
and then I have objects
TMyClass* A = new TMyClass;
TMyClass* B = new TMyClass;
TMyClass* C = new TMyClass;
Sometimes, I need to call all three objects funca, like this :
A->funca();
B->funca();
C->funca();
So finally to the question - is there a way to combine these objects in a
"Meta" object that could do
something like this :
TMyClass* Meta=new TMyClass;
Meta->funca();
and have it run A, B, and C objects funca called?
THanks, Brian Dumas