In Figure 7, the only legitimate member variables are the ones that appear just above the method declaration, namely @name, @salary, and @hire_year.
在图7 中,合法的成员变量只是在上面方法声明中出现的成员变量,即 @name、@salary 和 @hire_year。
In Figure 7, the only legitimate member variables are the ones that appear just above the method declaration, namely @name, @salary, and @hire_year.
在图7 中,合法的成员变量只是在上面方法声明中出现的成员变量,即 @name、@salary 和 @hire_year。
应用推荐