[Logo]
Forums Register Login
add methods ?
can i add methods?
example : can it happen this?and the result of it will be 14?
(1 like)
You could answer this simply enough by running the code yourself. Try it out and report back with your results.
 
Tim Cooke wrote:You could answer this simply enough by running the code yourself. Try it out and report back with your results.
worked :d
(1 like)
Great! What was the value of k at the end? 14 as you predicted?
(1 like)
And sinc you found out that it worked, what do you think this would produce?
 
Fred Kleinschmidt wrote:And sinc you found out that it worked, what do you think this would produce?
the same?
Are you asking? Or telling?

Try it out yourself, and tell us what the result is. You learn by doing, so many questions can be answered with a little test program where you play with the code and see what happens.
 
ekte spiriopoulos wrote:can i add methods?


Its more like you're adding/storing the results of those methods.
 
ekte spiriopoulos wrote:can it happen this?and the result of it will be 14?

Without the method declarations (and especially the return types) of add() and addk(), it is impossible to tell if it will compile or not... And to illustrate, some of these add() methods will compile, others will not. It's up to you to determine which ones will compile and which others won't (and try to explain why), if you insert them independently
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 19, 2017 11:11:08.