title: How to access the Private member in the same class using getter and setter property in C#
body: <p>In the given code. I want to access the private value in the other main class I read the value from the console and through this class want to display in the console</p>
  <pre><code>using System;
  
  class Customer
  {
      private string _customerAddress;
  
      public string CustomerAddress
      {
          get { return this._customerAddress; }   
          set { this._customerAddress = value; }
      }
      public void DisplayDetails()
      {
          Console.WriteLine(&quot;Hello World&quot;, CustomerAddress);
      }
  }
  </code></pre>