title: Typescript, using classes without constructor
body: <p>While working with the "Tour of Heroes" tutorial on the Angular website I found the following syntax (shortly):</p>
  
  <pre><code>class Hero {
    id: number,
    name: string,
  }
  
  const aHero: Hero = {
    id: 1,
    name: 'Superman'
  }
  
  console.log(aHero instanceof Hero); //false
  </code></pre>
  
  <p>What would be the point in doing this? when if I check the type of "aHero", it is only a common object and not a "Hero" type. Would it be better just initializing an object with a constructor?:</p>
  
  <pre><code>class Hero {
    constructor(id: number, name: string) {}
  }
  </code></pre>