title: How to differentiate each variable in a class by the copy constructor
body: <p>Think I have a class </p>
  
  <pre><code>class Man{
  public:
  int age;
  int height;
  }
  </code></pre>
  
  <p>Then in main  </p>
  
  <pre><code> Man black_man;
   black_man.age=20;
   black_man.height = 180;
  
   Man white_man = black_man;
  </code></pre>
  
  <p>So here the copy constructor how to differentiate <code>age</code> from <code>height</code>and copy exactly correctly. When compiling does compiler assign any index or prefix to each variable to identify uniquely something like <code>name mangling</code> for functions? simply what is the mechanism behind this?</p>