0
May i know where i am wrong
8 ответов
+ 2
saveCustomerInfo() definition doesn't match the invocation. The definition specifies method with parameters, invocation calls it as if the method accepts no parameters.
+ 2
Look at definition at line 29, you have specified that the method accept parameters.
Next look at line 18, the invocation doesn't pass any argument
+ 2
Call the method giving it arguments as specified in its definition.
Line 18:
customer.saveCustomerInfo( firstName, secondName, age, roomNumber );
+ 2
Must've missed it somewhere, I got no error with that ...
+ 1
Yep it worked i wrote it this way initially (String firstName..)
THANK YOU
0
Okay so what should I do then
0
Still didn't work i got an
')' needed
- 1
How does itvnot match the invocation