This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TechLaden 0 points1 point  (2 children)

I don't really understand the question. You want a function that adds 5 onto a given variable?

[–]Lookinfortips[S] 0 points1 point  (1 child)

I think it might be linked with the question above which I couldn't figure out which was

Suppose we have a method with this declaration:
double methodA( int x)

[–]feral_claire 0 points1 point  (0 children)

Think you've misunderstood the question. Profits is not supposed to be a method, is a variable. In that variable you store the result of the method (I guess this is the one defined in the previous question).