Created
March 7, 2015 19:20
-
-
Save ilyeshammadi/9606c39af6f2247da0d7 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Created by Ilyes Hammadi on 07/03/2015. | |
*/ | |
public class Animal { | |
// attribut | |
private String name; | |
private int poid; | |
private static int nombreAnimeau = 0; | |
// conctrucot | |
public Animal(String name, int poid) { | |
this.name = name; | |
this.poid = poid; | |
} | |
// setters | |
public void setName(String name) { | |
this.name = name; | |
} | |
public void setPoid(int poid) { | |
this.poid = poid; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment