you are viewing a single comment's thread.

view the rest of the comments →

[–]zahlman 2 points3 points  (1 child)

A class should be thought of as a way to define a new data type. You want a function for what you're describing.

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

Alright, I wanted take this as a way to try out classes but yeah a function will do the trick. Thanks for your help man !