i am having a hard time understanding overloading of functions in this code..i am not able to understand why isnt the compiler able to detect the same declaration of fun()....further i didnt even understand line9 where a constructor is inherited....how is it inherited???plz help me in understanding this...
Non-static member functions have one more implicit parameter of type either SomeClass * or const SomeClass * depending on whether the trailing const qualifier is present.
So in fact the definitions