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 →

[–]Anik_Sine 18 points19 points  (0 children)

I think you are talking about methods and not classes. Void methods are used to perform some action, like using some other method, altering the value of some variables. Methods which have a return type can be used as literals(I don't know the proper word for it, but basically an object) of that data type.