text: class Vehicle {
    constructor(brand, type) {
      this.brand = brand;
      this.type = type;
    }
  
  }
  
  class Car extends Vehicle {
    constructor(brand, type) {
      super(brand, type);
    }
    
    info() {
      return `Het merk van deze wagen is ${this.brand}, het type is ${this.type}`;
    }
  
    brake() {
      return `${this.brand} ${this.type} remt af!`;
    }
  }
  
  class MotorCycle extends Vehicle {
    constructor(brand, type) {
      super(brand, type);
    }
  
    info() {
      return `Het merk van deze motor is ${this.brand}, het type is ${this.type}`;
    }
  
    wheelie() {
      return `${this.brand} ${this.type} doet een wheelie!`;
    }
  }
  
  const car = new Car("Lamborghini", "Aventador");
  const car2 = new Car("Opel", "Combo");
  const motorCycle = new MotorCycle("Suzuki", "GSR-750");
  
  const vehicles = [car, car2, motorCycle];
  
  const printInformation = () => {
    vehicles.forEach((vehicle) => console.log(vehicle.info()));
    console.log(car2.brake());
    console.log(motorCycle.wheelie());
  };
  
  printInformation();
  