当前位置:首页 » 翻译 
  • 匿名
关注:1 2013-05-23 12:21

求翻译:The Circle class has three fields: x, y, and radius. The setOrigin method has two parameters, each of which has the same name as one of the fields. Each method parameter shadows the field that shares its name. So using the simple names x or y within the body of the method refers to the parameter, not to the field. To a是什么意思?

待解决 悬赏分:1 - 离问题结束还有
The Circle class has three fields: x, y, and radius. The setOrigin method has two parameters, each of which has the same name as one of the fields. Each method parameter shadows the field that shares its name. So using the simple names x or y within the body of the method refers to the parameter, not to the field. To a
问题补充:

  • 匿名
2013-05-23 12:21:38
Circle类有三个字段: X,Y ,和半径。
  • 匿名
2013-05-23 12:23:18
正在翻译,请等待...
  • 匿名
2013-05-23 12:24:58
圈子类有三个领域: x, y和半径。 setOrigin方法有二个参量,每哪个有名字和其中一个领域一样。 每个方法参量遮蔽分享它的名字的领域。 如此使用简名x或y在方法的身体之内提到参量,不对领域。 要访问领域,您必须使用一个限定名。 这在这个教训在使用这个主题词题为的“部分以后将被谈论”。
  • 匿名
2013-05-23 12:26:38
圈子类有三个字段: x、 y 和半径。SetOrigin 方法具有两个参数,其中每个具有相同的名称作为域中的一个。每个方法参数将隐藏共享其名称的字段。所以使用的简单名称 x 或 y 在方法的主体内引用的参数,不到外地。若要访问该字段,必须使用一个限定的名称。这将讨论以后在这一课在章节中"使用此关键字."
  • 匿名
2013-05-23 12:28:18
正在翻译,请等待...
 
 
网站首页

湖北省互联网违法和不良信息举报平台 | 网上有害信息举报专区 | 电信诈骗举报专区 | 涉历史虚无主义有害信息举报专区 | 涉企侵权举报专区

 
关 闭