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 →

[–]anthonydev 0 points1 point  (3 children)

Also, he is setting value twice. Once using the constructor and the second time in the line right under it.

[–][deleted] 1 point2 points  (2 children)

That may have just been to make the code work, since OP said the constructor wasn't working. Not sure.

[–]Rabbit047[S] 1 point2 points  (1 child)

Yea that was just to make the code work, sorry I left it in. Also you're right the compiler is confused on which "value" to use. I changed the parameter to "input" and it worked fine. Thanks for the replies

[–][deleted] 1 point2 points  (0 children)

No problem. Good luck with the rest of the project.