Why ambiguity only for overloaded operators and not for functions with “same” name but different scope?

前端 未结 0 1779
离开以前
离开以前 2021-01-30 18:56

Consider the example:

class Gfg { 
public: 
    void printHello() 
    { 
        cout << "hello gfg-class specific" << endl; 
    } 
}; 
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题