读书笔记 effective C++ Item 33 避免隐藏继承而来的名字

  1. 普通作用域中的隐藏 名字实际上和继承没有关系。有关系的是作用域。我们都知道像下面的代码: 1 int x; // global variable 2 3 void someFunc() 4 { 5 double x; // local variable 6 7 std::cin >> x; // read a ne
相关文章
相关标签/搜索