title: Call a child method from a parent class in ES6
body: <p>Is It good/bad practice to call a child method from a parent class?</p>
  
  <pre><code>class Parent {
      constructor() {
          // if 'autoPlay' exists (was implemented) in chain
          if (this.autoPlay) {
              this.autoPlay(); // execute from parent
          }
      }
  }
  
  class ChildA extends Parent {
      autoPlay() {
          console.log('Child');
      }
  }
  
  class ChildB extends Parent {
      // 'autoPlay' wasn't implemented
  }
  
  const childA = new ChildA();
  const childB = new ChildB();
  </code></pre>