title: How to access private data members outside the class without making "friend"s?
body: <p>I have a <code>class A</code> as mentioned below:-</p>
  
  <pre><code>class A{
       int iData;
  };
  </code></pre>
  
  <p>I neither want to create member function nor inherit the above <code>class A</code> nor change the specifier of <code>iData</code>.</p>
  
  <p>My doubts:-</p>
  
  <ul>
  <li>How to access <code>iData</code> of an object say <code>obj1</code> which is an instance of <code>class A</code>?</li>
  <li>How to change or manipulate the <code>iData</code> of an object <code>obj1</code>?</li>
  </ul>
  
  <p><strong>Note</strong>: Don't use <code>friend</code>.</p>