下面一个选项是改变返回值类型。
一个UML操作,并且以一个int作为返回值类型。
系统将为您创建与该方法的返回值类型相同的新局部变量。
A new local variable of the same type as the method's return value is created for you.
So you're implementing this black box, and if its purpose in life is to actually return a value, you have to tell the compiler what kind of value to expect, and this is going to have ripple effects.
你在实现这个黑盒子,如果它的目的是,返回一个值,你必须告诉编译器你期望的是什么类型的值,这个将是一个连锁反应。
应用推荐