MàJ par récupération sur Clé USB et dans /mnt/hd/Chargement du pc portable

This commit is contained in:
olivier
2008-12-02 23:56:33 +01:00
parent 3e719157ea
commit 5b95264a14
196 changed files with 12561 additions and 10316 deletions

View File

@ -0,0 +1,21 @@
public class Femme extends Personne {
///////////////////////////////////////
// attributes
private String nomjf;
///////////////////////////////////////
// operations
public Femme(String nom,int an, String njf) {
super(nom,an);
this.nomjf = njf;
} // end constructeur
public String toString(){
return super.toString()+" nee "+nomjf;
}
} // end Femme

View File

@ -0,0 +1,54 @@
/** Java class "Personne.java"
Repr<EFBFBD>sente une personne quelconque
*/
import java.util.*;
public class Personne {
///////////////////////////////////////
// attributes
private String nom;
private int anneeNaiss;
///////////////////////////////////////
// operations
public String getNom() {
return nom;
}
public void setNom(String _nom) {
nom = _nom;
}
/**
* <p>
* Constructeur de Personne
* </p><p>
*
* @return a Personne * </p><p>
* @param i identifiant
* </p> <p>
* @param n nom
* </p>
*/
public Personne(String n,int an) {
this.nom=n;
this.anneeNaiss=an;
}
public String toString() {
return nom+" "+anneeNaiss;
}
public static void main (String args[]) {
Personne p1 = new Personne("Dupont", 1964);
Personne p2 = new Personne("Dulac", 1983);
Personne p3 = new Femme("Mme Dupont", 1972,"Durand");
System.out.println (p1);
System.out.println (p2);
System.out.println (p3);
}
} // end Personne