Solved

# One more question of Number of parameters

Posted on 2008-10-09
187 Views
Hi

As you can see the code, if the question asks you to write down the numbers of parameters and return type.

Number of parameters: 2 (String & double)
Return type: rentHouse ? (I'm not sure)

Thanks.

Thanks.
``````public boolean rentHouse(String address, double weeklyRent, House rentedHouse)
``````
0
Question by:bt1942
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4
• 2

LVL 6

Accepted Solution

manuel_m earned 500 total points
ID: 22676249
Ok, same here.

Count the number of parameters.
weeklyRent of type double
and rentedHouse obviously of type House.

so we have 3 parameters.

The return type here is between the public modifier and the method name rentHouse.
0

Author Comment

ID: 22676273
manuel_m // Ok I see, so the return type is boolean?
0

Author Comment

ID: 22676279
manuel_m // Oh ok my mistake.
0

Author Comment

ID: 22676285
manuel_m // if they are same like (int day, int month, int year) do you count this as 1 or 3?
0

Author Closing Comment

ID: 31504566
Thanks for the comment.
0

LVL 6

Expert Comment

ID: 22676310
> 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 :-)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
###### Suggested Courses
Course of the Month6 days, 6 hours left to enroll