Section A: Modern JavaScript Programming
Section B: Python Programming
Section C: SQL for Database
Section D: Backend Development with Django
Section E: React for Frontend Development with Redux
Section F: React Native for Multiplatform App Development
Section G: React with Django REST API

04. Class

Topic
Materials

// Classes - Blueprint to create objects
class Vehicle {
  constructor(param1, param2) {
    this.color = param1;
    this.passenger = param2;
  }
  saySomething() {
    console.log(this.color);
  }
}
// Inheritance
// Derived Class
class Car extends Vehicle {
  constructor(numWheel, pass, color) {
    super(color, pass);
    this.wheel = numWheel;
  }
}

let obj1 = new Car(4, 6, "Yellow");
console.log(obj1);
×

Cart