public abstract class Objpostal { private String origine; private String destination; private int codepost; private double poids; private double vol; private int tauxrecommand; private double tauxremboursement; protected void setTauxRemboursement (double taux ) { tauxremboursement = taux; } protected double getTauxRemboursement () { return tauxremboursement; } public int tauxrecommand () { return this.tauxrecommand; } protected String getOrigine() { return origine; } protected void setOrigine(String origine) { this.origine = origine; } protected String getDestination() { return destination; } protected void setDestination(String destination) { this.destination = destination; } protected int getCodepost() { return codepost; } protected void setCodepost(int codepost) { this.codepost = codepost; } protected double getPoids() { return poids; } protected void setPoids(double poids) { this.poids = poids; } protected double getVol() { return vol; } protected void setVol(double vol) { this.vol = vol; } protected int getTauxrecommand() { return tauxrecommand; } protected void setTauxrecommand(int tauxrecommand) { this.tauxrecommand = tauxrecommand; } public Objpostal (String ext_origin, String ext_dest, int ext_codepost, double ext_poid, double ext_volume, int ext_tauxrec) { this.setOrigine(ext_origin); this.setDestination(ext_dest); this.setCodepost(ext_codepost); this.setPoids(ext_poid); this.setVol(ext_volume); this.setTauxrecommand(ext_tauxrec); } }