I have car class and a method in that methods I need to return those values,in program that will be calling on that method and it's findingmatchingcar class with it's with 80% or greater of the users required inputs my question is I'm having program with the return types and how would I return those values and have them get printed? thanks Eric
in that methods I need to return those values,in program that will be calling on that method and it's findingmatchingcar class with it's with 80% or greater of the users required inputs my question is I'm having program with the return types and how would I return those values and have them get printed? I am eager to help, but what is the question, again?
My basic question is I have to return make,model,type,price,safetyrating,mpg if that car is with in my users preference but how do you return values with different types, their are strings,int,doubles.
My basic question is I have to return make,model,type,price,safetyrating,mpg if that car is with in my users preference but how do you return values with different types, their are strings,int,doubles. You can always return an object that contains all the needed info.
since 'findfit' is a bool, make the method type bool but put the after the
so it would look something like
is this what your trying to do? then you wouldnt be assigning findFit to anything, you would be using it in an if statement, like or if all your trying to do is Print the details if it fits, make it like this
Then all you would be doing is displaying the information if it was the right car or else display that its not a match. hope this helps. [ October 19, 2003: Message edited by: Ray Muntz ]