package persons;

/**
 * Created by fcmam5 on 11/13/15.
 * Implemented by
 */
public class Donor extends Personne {
   private char groupage;
    private int n;
    private int quantite;
   
    public donor(char groupage , int n, int quantite,char adresse, bool motivation){
        super (name, firstName, grouping,adresse[]);
                this.groupage=groupage;
                 this.n=n;
                  this.quantite=quantite;
                  this.adresse=adresse;
    } 
   
    public void setGroupage (char gropage){
        this.groupage=groupage;
        
}
    public char getGroupage(){
        return this.groupage:
}
    public void setN (int n){
        this.n=n;
    
    }
    public int getN( ){
        return this.n;
       
    }
public void setQuantite (int quantite){
    this.quantite=quantite;
}
public int getQuantite (){
    return this.quantite;
    
}
public void setAdresse (char adresse){
    this.adresse=adresse; // hadi makanch
}
public char getAdresse (){
    return this.adresse; // hadi makanch 
    
}
public void setMotivation( bool motivation){
    this.motivation=motivation;
}
public bool getMotivation (){
    return this.motivation;
 


}     
}

package persons;

/**
 * Created by fcmam5 on 11/13/15.
 * Implemented by
 */
public class Donor extends Personne {
    private static int donNum = 0;
    private int quantite;
    boolean motivation;

    public Donor(String name, String firstName, int age, String grouping, String[] adresse, int quantite, boolean motivation) {
        super(name, firstName, age, grouping, adresse);
        this.donNum++;
        this.quantite = quantite;
        this.motivation = motivation;
    }


    public void setGroupage (String gropage){
        setGrouping(gropage);
        
}
    public String getGroupage(){
        return getGrouping();
}

    public int getDonNum( ){
        return this.donNum;
       
    }

    // HOw much he gives ?
    public void setQuantite (int quantite){
    this.quantite=quantite;
}

    public int getQuantite (){
        return this.quantite;
    }


}     


Correct the code