class dd
{
int age;
void shout()
{
age=90;
System.out.print("oh,my god"+age);
}
}
79391320(伤心yoti) 16:03:16
这样做,JAVA会报错,JAVA中不允许这样在变量的作用域中再重新定义变量的,这样容易引起混淆
79391320(伤心yoti) 16:03:27
本来方法的重载就够程序员烦的了
class dd
{
int age;
void shout()
{
age=90;
System.out.print("oh,my god"+age);
}
}
79391320(伤心yoti) 16:03:16
这样做,JAVA会报错,JAVA中不允许这样在变量的作用域中再重新定义变量的,这样容易引起混淆
79391320(伤心yoti) 16:03:27
本来方法的重载就够程序员烦的了