bt1942
asked on
One more question of Number of parameters
Hi
As you can see the code, if the question asks you to write down the numbers of parameters and return type.
The answer would be
Number of parameters: 2 (String & double)
Return type: rentHouse ? (I'm not sure)
Thanks.
Thanks.
As you can see the code, if the question asks you to write down the numbers of parameters and return type.
The answer would be
Number of parameters: 2 (String & double)
Return type: rentHouse ? (I'm not sure)
Thanks.
Thanks.
public boolean rentHouse(String address, double weeklyRent, House rentedHouse)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
manuel_m // Oh ok my mistake.
ASKER
manuel_m // if they are same like (int day, int month, int year) do you count this as 1 or 3?
ASKER
Thanks for the comment.
> if they are same like (int day, int month, int year) do you count this as 1 or 3?
The count is 3 !
You always have to count all the parameters given in a method. It doesn't matter what type they are :-)
The count is 3 !
You always have to count all the parameters given in a method. It doesn't matter what type they are :-)
ASKER