赞
【 在 zackyne 的大作中提到: 】
: 直接贴书里原文,讲的很清楚了
:
: As we’ve seen, functions declared in an inner scope do not overload functions declared in an outer scope (§ 6.4.1, p. 234). As a result, functions dened in a derived class do not overload members dened in its base class(es). As in any other scope, if a member in a derived class (i.e., in an inner scope) has the same name as a base-class member (i.e., a name dened in an outer scope), then the derived member hides the base-class member within the scope of the derived class. The base member is hidden even if the functions have different parameter lists:
: ...................
--来自微水木3.5.1
--
FROM 42.234.94.*