Link to home
Start Free TrialLog in
Avatar of rickhill11
rickhill11

asked on

Calling a Class Library function without explicitly using the class name

Suppose we have a namespace "MyFavoriteLibrary" and within that there is a class called "MyLib and within MyLib is a function called "MyFunct."

I believe that I can call that function by MyFavoriteLibrary::MyLib::MyFunct()

I believe that I can also use

using namespace MyFavoriteLibrary;

MyLib::MyFunct();

Is there a way to set-up the library or application to simply call

MyFunct();
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial