Solved

Return type

Posted on 2008-10-09
4
189 Views
Last Modified: 2013-11-23
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
Comment
Question by:bt1942
  • 2
4 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 400 total points
ID: 22682956
(void) ==> Nothing is returned.  If you think in terms of subs and functions, this would be a sub.
0
 
LVL 59

Assisted Solution

by:Kevin Cross
Kevin Cross earned 400 total points
ID: 22682978
If you need further clarification, see this portion of the Java Tutorials:
http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html
0
 
LVL 10

Assisted Solution

by:peetm
peetm earned 100 total points
ID: 22683097
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
 

Author Closing Comment

by:bt1942
ID: 31504855
Thanks for the comment!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 84
splitOdd10 challenge 5 74
WPF issue with Trigger 2 91
Programatically extract date from website 8 65
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now