title: Why doesn't this abstract class output anything in Php?
body: <p>Why does this abstract class not work and output nothing?</p>
  
  <pre><code>&lt;?php
  abstract class Con {
      function __construct($name);
      }
  }
  class Shop extends Con {
      function __construct($name) {
          $this-&gt;shopname = $name;
      }
      function write() {
          echo $this-&gt;shopname;
      }
      function outputdate() {
          echo ' ' . date('Y');
      }
      function __destruct() {
          $this-&gt;outputdate();
      }
  }
  </code></pre>