constructeurs pour classes abstrraites
This commit is contained in:
@@ -3,6 +3,11 @@ package fr.iut_fbleau.GameAPI;
|
||||
public abstract class AbstractPly {
|
||||
private Player joueur;
|
||||
|
||||
// constructeur à appeler dans le constructeur d'un fils concret avec super.
|
||||
public AbstractPly(Player j){
|
||||
this.joueur=j;
|
||||
}
|
||||
|
||||
public Player getPlayer(){
|
||||
return this.joueur;
|
||||
}
|
||||
|
Reference in New Issue
Block a user