package persons;

import java.util.Objects;

/**
 * Created by fcmam5 on 11/13/15.
 * Implemented by Mouilah-Sarra
 */
public class Donor extends Personne {
    
    private int quantite;
    private byte motivation;
   

    public Donor(int id, String name, String firstName, int age, String grouping, String[] adresse, int quantite, boolean motivation,String mail, int numTel) {
        super( 
            int id,
            String name, 
            String firstName, 
            int age, 
            String grouping , 
            Adresse adresse,
            String mail, 
            int phoneNumber,
            double poids);
      
        this.quantite = quantite;
        this.motivation = motivation;
         
    }


   
    public int getQuantite (){
        return this.quantite;
    }
    public void setQuantite(int quantite){
        this.quantite= quantite;
    }
     
     public byte getMotivation(){
         return this.motivisation;
     }
    
    public void setMotivation(byte motivation){
        this.motivation=motivation;
    }
    

    /**
     *  if He is motivated let's keep his infos in a table :
     *  [[String DonorKey]|[String email]|[int telNumber]]
     *  DonorKey is [firstDon+the name & first's first nameLetter]
     *      Example : "Johny Bob's first donNum was 54 (Was the the 54th donor)"
     *                 His code will be : JB54
     */

    /*public Donor(String name, String firstName, int age, String grouping, String[] adresse_given, int quantite) {
        super(name, firstName, age, grouping, adresse_given);
        this.quantite = quantite;
        this.motivation = true;

        //Filling DonorCard :
        this.donorCard[0] = name.charAt(0)+firstName.charAt(0)+this.getDonNum(); //Code B-)
        this.donorCard[1] = name;
        this.donorCard[2] = firstName;
    }*/ //pourquoi tous ces contructeurs

}


@@ -244,179 +244,9 @@
 id, 
-String name, String firstName, int age, String grouping, String%5B%5D adresse, int quantite, boolean motivation,String mail, int numTel) %7B%0A        super( %0A            int id,
 %0A
+
     
@@ -435,16 +435,16 @@
 Number,%0A
-
         
@@ -459,16 +459,328 @@
 le poids
+%0A            int quantite%0A            byte motivation) %7B%0A        super( int id, %0A            String name, %0A            String firstName, %0A            int age, %0A            String grouping , %0A            Adresse adresse,%0A            String mail, %0A            int phoneNumber,%0A            double poids%0A            
 );%0A     

Update Donor.java