filmov
tv
The JavaScript SUPER keyword is super! 🦸♂️
Показать описание
00:00:00 intro
00:00:22 setup
00:02:39 super constructor
00:05:59 super methods
00:09:03 conclusion
// super = keyword is used in classes to call the constructor or
// access the properties and methods of a parent (superclass)
// this = this object
// super = the parent
class Animal{
constructor(name, age){
}
move(speed){
}
}
class Rabbit extends Animal{
constructor(name, age, runSpeed){
super(name, age);
}
run(){
}
}
class Fish extends Animal{
constructor(name, age, swimSpeed){
super(name, age);
}
swim(){
}
}
class Hawk extends Animal{
constructor(name, age, flySpeed){
super(name, age);
}
fly(){
}
}
const rabbit = new Rabbit("rabbit", 1, 25);
const fish = new Fish("fish", 2, 12);
const hawk = new Hawk("hawk", 3, 50);
00:00:22 setup
00:02:39 super constructor
00:05:59 super methods
00:09:03 conclusion
// super = keyword is used in classes to call the constructor or
// access the properties and methods of a parent (superclass)
// this = this object
// super = the parent
class Animal{
constructor(name, age){
}
move(speed){
}
}
class Rabbit extends Animal{
constructor(name, age, runSpeed){
super(name, age);
}
run(){
}
}
class Fish extends Animal{
constructor(name, age, swimSpeed){
super(name, age);
}
swim(){
}
}
class Hawk extends Animal{
constructor(name, age, flySpeed){
super(name, age);
}
fly(){
}
}
const rabbit = new Rabbit("rabbit", 1, 25);
const fish = new Fish("fish", 2, 12);
const hawk = new Hawk("hawk", 3, 50);
The JavaScript SUPER keyword is super! 🦸♂️
Super Keyword - JavaScript Programming
Super Keyword in Java Full Tutorial - How to Use 'super'
AM Coder - Javascript 'Super' keyword Masterclass
super method in javascript
Using super keyword and super() in JavaScript (JavaScript for Beginners - Part 29)
JavaScript Super Keyword Explained: Master Inheritance and Super in JavaScript
⚽ JavaScript quick tips ⚽ Classes super keyword
Roadmap to Land Frontend Jobs
Part 17- OOPS - Inheritance | Overriding | super Keyword in JavaScript
Class constructor and static | chai aur #javascript
56 JavaScript ES6 | OOP Super keyword
Extends and Super Keywords in JavaScript Classes
this and super keyword in Java
17 | Super Keyword In JavaScript | Super Method JavaScript | OOP JavaScript | OOP | JS (Hindi/URdu)
Super Method in JavaScript (Hindi)
Super keyword in TypeScript
JavaScript Shorts · Classes Super Keyword Example
JavaScript Super Keyword
#16 Super Keyword and Function
Super Keyword in Java | Learn Coding
JavaScript Tutorial: super keyword in js in Hindi | #78 #super #javascriptinhindi #javatutorial
Inheritance & extends Keyword in JavaScript | JavaScript Tutorial in Hindi #78
#05 Inheritance in JavaScript | ES6 Extends & Super keyword
Комментарии