How to avoid calling child's method from parent class in javascript?

后端 未结 0 1316
孤城傲影
孤城傲影 2021-01-21 05:27

Example:

class Parent {
    funcA() {this.funcB();}
    funcB() {console.log(\'FuncB in Parent\');}
  }

class Child extends Parent {
    funcA() {super.funcA();}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题