Favorite dish

  • 7
  • Locked
Rename the parameters of the printPersonInfo() method: - firstName to name; - lastName to surname; - favoriteDish to meal; without changing the program's functionality. Leave the variable names in the main() method unchanged.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Hoist
Level 15 , San Diego, United States
9 December 2021, 04:42
nvm -- I figured it out. // Note: align the call arguments using different 'variable' names with the method parameters also with different 'variable' names -- they look for Type match versus name match ... I think lol -- read back a few pages and you will see examples where the call argument names mismatch with the method parameters yet must have the same type. Also read about overloading ... Methods can have the same exact name with different parameter 'loads' -- the quantity of 'variables' in the method being utilized is altered to get the logic formulation spot on. Exact same method name. Also read up on _this_
Hoist
Level 15 , San Diego, United States
8 December 2021, 23:09
This bombs ... what am I missing here ? See commented out code I have changed out ... ideas ? THX