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.
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.
#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










