import { Tache } from './Tache.js'; export class TacheProfessionnelle extends Tache { constructor(titre, texte, date, projet) { super(titre, texte, date); this._projet = projet; } afficher() { super.afficher(); console.log(`Projet: ${this._projet}`); } toString() { return `${super.toString()}, Projet: ${this._projet}`; } }