I´ve changed it the way you considered it right, but it still doesn´t want to function.
The object given to class A in the contructor is still another one than the object made in the main-programm. (A copy, as it seems, not a reference.)
The class refObj of course does have some content, too, and I changed it with the A-object and printed the result with the main-programm -> without results.
If I print the changed value with the A-object (from where the changings were also made), everything is fine.
Which of these '&'s is wrong, now ??