i have two classes (non-static) A & (static) B. I am trying to store Object A into B so that i can use its functions in funcB(). However i do know that static classes cannot store non-static variables & functions. is there anyway to get pass this rather than converting Class A into a static class?
class A
{
public:
A();
void funcA();
private:
int A;
};
class B
{
public:
B(A *objA);
static void funcB();
private:
A *objA;
};
edit: I stated static class to make it easier to explain. i did not know the correct term. So the question is actually: How do i use a non-static member from a static function?