When local variables are defined, they have no value and are not initialized.
定义局部变量时,它们没有值,也没有初始化。
No. Because A and B and even temp they were by nature local or temporary variables.
不会,因为a和b还有temp,他们是局部的,临时的变量。
There are no differences in the declarations of local variables, cursors, temporary tables, but on both platforms the order of declaration is important.
在局部变量、游标和临时表的声明方面,两种平台没什么差别,但在这两种平台上,声明的顺序却很重要。
A more substantial limitation on the source code is that there's no way to refer to local variables declared outside the statement or block being added.
对于源代码的一项更实质性的限制是不能引用在所添加的声明或者块外声明的局部变量。
I find that this actually increases the readability of methods: there is no chance of confusing local variables and instance variables when glancing through a method.
我认为这事实上增加了方法的可读性:即使粗略的浏览一个方法,也不会有混淆局部变量和实例变量的机会。
Constructors should do no more than set the initial local variables to simple values.
构造函数中除了使用简单的值对局部变量进行初始化之外,什么都不应该做。
I find that this actually increases the readability of methods: there is no chance of confusing local variables and instance variables when glancing through a method.
我觉得这实际上增加了方法的可读性:当浏览一个方法时,在局部变量和实例变量之间不会出现令人费解的情况。
I find that this actually increases the readability of methods: there is no chance of confusing local variables and instance variables when glancing through a method.
我觉得这实际上增加了方法的可读性:当浏览一个方法时,在局部变量和实例变量之间不会出现令人费解的情况。
应用推荐