js super(0 code example
Example: javascript super
class Parent {
constructor() {}
method() {}
}
class Child extends Parent {
constructor() {
super() // Parent.constructor
super.method() // Parent.method
}
}
class Parent {
constructor() {}
method() {}
}
class Child extends Parent {
constructor() {
super() // Parent.constructor
super.method() // Parent.method
}
}