I'm not really understanding what a function is. From what I've gathered, it's the equivalent of a method in Java? I'm not a long time practioner in both of these languages, I'm actually learning them at the same time, so forgive me if my terminology is incorrect.
Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Page 1 of 1
Functions in C++?
#2
Posted 29 April 2009 - 09:32 AM
Yes you are right. Method in Java and functions in C++ are similar.
[url="http://www.avast.com/"]avast! free antivirus[/url]
#3
Posted 29 April 2009 - 10:49 AM
The only difference between a method and a function is that sometime one needs to declare a prototype for a function, whereas there is no such need for a prototype in Java. Other than that, they are a language-particular means of identifying an independent section of code.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens
Share this topic:
Page 1 of 1

Help



Back to top










