Thread
:
What does void do?
View Single Post
08-18-2002, 10:41 PM
#
5
(
permalink
)
sde
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,487
no, it's not worthelss.. just use void when you have functions that aren't going to return anything.
for example, a setName() function just takes a variable to set the name of an object, but doesn't really need to return anything.
sde
View Public Profile
Visit sde's homepage!
Find More Posts by sde