Copy ClassA val to ClassB

I wonder if there are any method to copy or detect new variable made from user in editor to copy or remove or rename in other class using c++.

Cause I have a variable name based save system but I need to add two variable in classA and B that take a lit of bit of time but when renaming I need to remember to rename in the B class for saving system work.

I method to copy or detect new variable made from user in editor to copy or remove