title: Call an overridden method in base class constructor in typescript
body: <p>When I'm calling an overridden method from the base class constructor, I cannot get a value of a sub class property correctly.</p>
  <p>Example:</p>
  <pre><code>class A
  {
      constructor()
      {
          this.MyvirtualMethod();
      }
  
      protected MyvirtualMethod(): void
      {
  
      }
  }
  
  class B extends A
  {
      private testString: string = &quot;Test String&quot;;
  
      public MyvirtualMethod(): void
      {
          alert(this.testString); // This becomes undefined
      }
  }
  </code></pre>
  <p>I would like to know how to correctly override functions in typescript.</p>