Newb Question on Passing Objects as Parameters
Does passing a pointer to an Object to a function instead of the Object itself save memory and the little time spent in copying memory?
Passing pointer would be:
I know it does when you pass a struct, and I know it is recommended only when the amount of data passed is very large. What I don't know is how do the objects behave when passed by parameter...
Perhaps passing an Object actually means passing a reference to it (which would seem logical to my OOP learnings), and thus the idea of passing a pointer to it is useless (given my purposes).
I should remark time and memory is going to be a serious issue on my project, since there will be a lot of data processing involved.
Thanks in advance,
Mariano López Gappa.
PS: Me = huge fan of this forum, and ppl in it :D Really helpful, great work!