For example, if I have a method called draw (String STR), an overloaded version can have the following form: draw (String STR, int I).
例如,如果有一个名为draw (String str)的方法,那么重载的方法可以有以下形式:draw (String str, int i)。
So STR, which I just typed up there, takes in parens, some input, and it converts it into a string, so that now I can use that John where I was expecting a string. John.
因此STR,也就是,我刚刚输入的,然后把这个输入变更为一个字符串,因此现在我就能,在需要用字符串的地方使用这个对象了。
应用推荐