first commit with existing project files
This commit is contained in:
17
TacheProfessionnelle.js
Normal file
17
TacheProfessionnelle.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user