I have this code and i want to call the move method of the Shape class in the Childbox class
class Shape {
move() {
console.log('move.');
}
}
class Box extends Shape {
move() {
console.log('Box move.')
}
}
class Childbox extends Box {
move() {
super.move();
console.log('Childbox move.')
}
}
I use
super.move()it gives the boxmove(), so how to call the Shape classmove()in theChildbox