Skip to content
Snippets Groups Projects
Commit 9f65d59b authored by VILLAUME Lucas's avatar VILLAUME Lucas
Browse files

Création des expression

parent 143c3688
No related branches found
No related tags found
No related merge requests found
class Expression{
#contenu;
construction(content = ""){
this.#contenu = content;
}
afficherContenu(){
return this.#contenu;
}
isNombre(){
return false;
}
isTexte(){
return false;
}
}
\ No newline at end of file
class Nombre extends Expression{
constructor(content){
super(content);
}
afficherContenu(){
return super.afficherContenu();
}
isNombre(){
return true;
}
}
\ No newline at end of file
class Texte extends Expression{
constructor(content){
super(content);
}
afficherContenu(){
return super.afficherContenu();
}
isTexte(){
return true;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment