T
Tim
Dear All,
Dependency should be not looped. However, I think it unavoidable. For
example, I have two classes: Bank and People as follows
class Bank
{
private:
Set<people*> m_clients; //all clients
};
class People
{
private:
Bank* m_bank; // in which an account is opened.
};
Any way to avoid the dependency loop?
Thanks,
Tim
Dependency should be not looped. However, I think it unavoidable. For
example, I have two classes: Bank and People as follows
class Bank
{
private:
Set<people*> m_clients; //all clients
};
class People
{
private:
Bank* m_bank; // in which an account is opened.
};
Any way to avoid the dependency loop?
Thanks,
Tim