Is there a possibility I can call foo() from bar() without creating objects.Code:class A
{
void foo()
{
}
};
class B
{
void bar()
{
}
};
Restrictions: * Cannot use static methods
* Cannot create class Hierarchies
* Cannot use Friend Functions