I'm getting my hands dirty with C++.
I come with a background in Java and C# and there's something that I don't think I understand in C++.
In these two lines:
Person kate("Kate");
Person& rKate = kate;
Does the fact that I'm using Person
for one variable and Person&
for the other, change in anyway how I can treat each variable later on? I understand the consequences in the calling code when declaring references as parameters of a function and then reassigning them in the function; and I understand the difference if I used a primitive type in the example above, but not for classes.