title: How to save this value?
body: <p>Sorry for my stupid question. I just start learning PHP OOP and I have a lot of questions.</p>
  
  <p>I would like to know which method I should using to store and bring this value. </p>
  
  <p>First:</p>
  
  <pre><code>class Car {
  
      public $carMake;
  
      public function setMake()
      {
      }
  
      public function getMake()
      {
          return $this-&gt;carMake;
      }
  }
  
  $c = new Car();
  $c-&gt;carMake = "Audi";
  echo $c-&gt;getMake();
  </code></pre>
  
  <p>Or this one:</p>
  
  <pre><code>class Car {
  
      public $carMake;
  
      public function setMake($make)
      {
          $this-&gt;carMake = $make;
      }
  
      public function getMake()
      {
          return $this-&gt;carMake;
      }
  }
  
  $c = new Car();
  $c-&gt;setMake("BMW");
  echo $c-&gt;getMake();
  </code></pre>