相同名字 meaning in Chinese
having the same name
like-named
Examples
- Another example is overloading : giving the same name to different operations within the same class
另外一个例子是重载:在同一个类中定义相同名字(的方法)去实现不同的操作。 - A name can be hidden by an explicit declaration of that same name in a nested declarative region or derived class ( 10 . 2 )
名字被嵌套的声明区域或派生类( 10 . 2 )中相同名字的显式声明所隐藏。 - The declaration of a member in a derived class ( clause 10 ) hides the declaration of a member of a base class of the same name ; see 10 . 2
派生类(章节10 )中的成员声明隐藏基类成员相同名字的声明;参见10 . 2 。 - The scope of a declaration is the same as its potential scope unless the potential scope contains another declaration of the same name
声明的作用域与其潜在作用域相同,除非潜在作用域包含相同名字的另一个声明。 - In a member function definition , the declaration of a local name hides the declaration of a member of the class with the same name ; see 3 . 3 . 6
在成员函数定义中,局部名字的声明隐藏类成员相同名字的声明;参见3 . 3 . 6 。