Created
May 31, 2013 11:53
-
-
Save anonymous/5684491 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Classe Personne | |
* Cette classe dérit un individu | |
*/ | |
public class Personne{ | |
private String nom; | |
private int age; | |
public Personne(String name, int age){ | |
name = nom; | |
this.age = age; // ici le mot clé this me permet d'eviter le pb avec les noms de variable identiques | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment