• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Return type

Hi

I have a question.

what's the return type in this code?

Is it setDate?

public void setDate(int day, int month, int year)

Open in new window

0
bt1942
Asked:
bt1942
  • 2
3 Solutions
 
Kevin CrossChief Technology OfficerCommented:
(void) ==> Nothing is returned.  If you think in terms of subs and functions, this would be a sub.
0
 
Kevin CrossChief Technology OfficerCommented:
If you need further clarification, see this portion of the Java Tutorials:
http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html
0
 
peetmCommented:
Subroutines are invoked for their 'behaviour' [or 'side effect'], whereas functions are invoked, so that the invokation results in some 'value' - the function is resolved to some value that is then used further in an expression.
0
 
bt1942Author Commented:
Thanks for the comment!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now