I need to override Parent method and call Grandparent method with NodeJs. Is it possible?
For example: A and B are library classes.
class A {
printFunction() {
console.log('Hello');
}
}
class B extends A {
printFunction() {
console.log('World');
}
runFunction() {
console.log('Running');
}
}
Now I have a class C which extends class B.
class C extends B {
// can i call class A printFunction here?
}
In the class C, can i call printFunction of A?