title: How to keep the value of "a parameter of a class" CONSTANT so that it can be accessed from other classes?
body: <p><em><strong>Request: I have solved my problem so, i request everyone to please stop down voting the question. I have written my Answer below my question.</em></strong></p>
  
  <p>I have <strong>three classes</strong> i.e. </p>
  
  <p><code>class-A</code> , </p>
  
  <p><code>class-B</code> , </p>
  
  <p><code>class-C</code>. </p>
  
  <ul>
  <li>A parameter named <code>int value</code> is declared in <code>class A</code></li>
  <li>I want to initialize it in <code>class B</code> i.e. <code>A.value = 0;</code></li>
  <li>and finally i want to use that <code>value</code> in <code>class C</code> </li>
  </ul>
  
  <p>Problem: How do i access the same value?</p>
  
  <p><strong>Solution:</strong> I HAVE ALREADY SOLVED THE PROBLEM. AND THIS IS MY SOLUTION</p>
  
  <p>My three classes;</p>
  
  <pre><code>class A
  {
      int value;    
  }
  
  class B
  {
      void setValue();    
  }
  
  class C
  {
      void useValue;    
  
  }
  </code></pre>
  
  <p>Now, the methods of the above classes</p>
  
  <pre><code>void B:setValue()
  {
      A object;
      object.value = 10;    
      useValue(object);
  }
  
  void C:useValue(A object)
  {
  
      cout&lt;&lt;"Parameter: "&lt;&lt;object.value;
  }
  </code></pre>