#include<iostream>
using namespace std;
class der
{
public:
void fun()
{
cout << "Good";
}
};
int main()
{
der a;
a.der::fun(); // method 1
a.fun(); // method 2
return 0;
}
I know, that ::
is used to access content of namespaces or nested class... But what is main difference between method 1 and method 2 that I mentioned in my code? Both are working fine...
Thanks.