title: Accessing Private Members with Cin inside Class
body: <p>I'm little confused.. My Code is Below</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  class Test {
      private:
      int x, y;
    public:
      void get(){
          cin&gt;&gt;x;
          cin &gt;&gt;y;
          cout &lt;&lt; x;
          cout &lt;&lt; y;
      }
  };
  
  int main ()
  {
    Test obj;
    obj.get();
    return 0;
  }
  </code></pre>
  
  <p>In this code I'm accessing private members using cin..!! Is it fine? because I think user can send values or access private members directly after program run..!! 
  I just want to ask is it safe or not..!! Thanks..!!</p>