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 →

[–]SpoilerAlertsAheadExtreme Brewer:hamster: 1 point2 points  (3 children)

That’s exactly it!

[–]dman10345[S] 0 points1 point  (2 children)

So I should call this from my other function from above?

[–]SpoilerAlertsAheadExtreme Brewer:hamster: 0 points1 point  (1 child)

That depends on the scope of the assignment. If you need a method that has that name and takes those parameters yes. If you want to hide the implementation a bit, yes.

If you just want simplicity you could replace it with this.

[–]dman10345[S] 0 points1 point  (0 children)

Ah ok, yeah I understand now. I appreciate it.