Hello,
I am familiar with c programming and was wondering if objects are the equivalent of 'functions' in c programming?
I am trying to get a simple understanding of how functions work in
java, I am trying to simply create a 'MAIN' that passes in two integers to a function called 'addition', then returns the sum of the two integers to main and prints it out...
Can someone please help me out with this? I would greatly appreciate it!
This is all it will take for me to understand how this works.
This is my code so far...
This is my main (please note my 'function1' function is empty so I did not include it):