Home > Back-end >  Great god help look at this piece of code is wrong
Great god help look at this piece of code is wrong

Time:10-02

CodePudding user response:

CodePudding user response:

Car2: is the power of ca2. Set... Here call set method, the return value of void cannot be together;
Don't edit with notepad, next editor, such mistakes

CodePudding user response:

You this is to belong to you to pick a hole in the game, spelling error
The first error, car2. Setpower () not return a value, so can't and string together, to car2. Getpower ()
The second mistake, car1. Sp p edup (80) to car1. Sp e edup (80)//pay attention to spelling
The third mistake, didn't see it, the estimate is in both Chinese and English point
Fourth, error System. Out. Prin r ln into System. Out. Prin t ln//attention to spelling
  • Related