Class Personne
java.lang.Object
Personne
public class Personne
extends java.lang.Object
Il s'agit d'une classe permettant de représenter un individu.
Les individus possèdent différents attributs comme un nom et un âge.
Une exemple de création d'un individu nommé Smith et ayant 40 ans :
Personne p = new Personne("Smith",40);
-
Constructor Summary
Constructors Constructor Description Personne(java.lang.String n, int a)
-
Method Summary
-
Constructor Details
-
Personne
public Personne(java.lang.String n, int a)
-
-
Method Details