title: Why a class has only one destructor?
body: <p>I have been asked a question as, a class has <code>multiple constructors</code> but why it has only <code>one destructor</code>?</p>
  
  <p>I gave below example,</p>
  
  <pre><code>class abc
  {
  public:
      int a;
      abc()
      {
          cout &lt;&lt; "Default\n";
      }
      abc(int)
      {
          cout &lt;&lt; "Int\n";
      }
      ~abc()
      {
          cout &lt;&lt; "Destructor\n";
      }
  };
  int main()
  {
      abc ab;
      abc a(5);
  }
  </code></pre>
  
  <p>And I explained as before abc a(5); gets called destructor will get called so, there will only one object at a particular point of time. I ran the above code now in my PC but it gave me output as </p>
  
  <pre><code>Default
  Int
  Destructor
  Destructor
  </code></pre>
  
  <p>If this is so then why do we have<code>one destructor</code> ?</p>