Reply To: C++ Programming

Forumite Points: 6,132

I haven’t tested this because I only just read it but…

I really should have noticed before but I thought I knew about References from C.

C++ try’s to stay away from pointers with its Reference feature. You can create a reference to an object and the new Reference object will basically BE the original object because it will always point to the original objects Value, what you do to one you do to the other.

You can use this to pass an object by reference to a function without creating a pointer and then dereferencing it in the function.