This commit is contained in:
2025-12-10 11:14:45 +01:00
parent 306a32dbbe
commit da47c2f2cb
28 changed files with 729 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
/** feuille du motif composite */
public class Travailleur extends Person {
/** constructeur
*
* @param n fun factor
*
*/
public Travailleur(int n){
super(n);
}
/**
*
* @return fête sans le travailleur
*/
public int bestPartyWithoutMe(){
return 0;
}
/**
* @return fête avec le travailleur
*/
public int bestParty(){
return getFunFactor();
}
}