This is the code I have
class Parent {
async A(part, id) {
}
async B(part, id) {
await this.A(part, id)
}
}
class Child extends Parent {
async A(id) {
}
async B(id) {
await super.B("part1", id);
// ...
}
}
// let's assume I'm in async context
const child = new Child();
await child.B();
So what is happening here is the Child.B is calling Parent.B, and Parent.B is calling Child.A (which is expected).
I want to know if there is a way for me to call Parent.B > Parent.A.
I realize that perhaps I need to rename the methods, but I wanted to know if there is a way for this.