Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ackage produit;
- import java.util.GregorianCalendar;
- public class Produit {
- private int codeUnique;
- private String categorie;
- private int periodedevalab;
- private double prixProduct;
- private GregorianCalendar dateProd;
- private int anne;//1,2,3
- private int code;
- private static int codeHelp=0;
- public int getCode() {
- return code;
- }
- public void setCode(int code) {
- this.code = code;
- }
- public static int getCodeHelp() {
- return codeHelp;
- }
- public static void setCodeHelp(int codeHelp) {
- Produit.codeHelp = codeHelp;
- }
- public void setAnne(int anne) {
- this.anne = anne;
- }
- public Produit(){
- }
- public Produit (int codeUnique, String categorie ,int periodedevalab ,
- GregorianCalendar dateProd){
- this.codeUnique = codeUnique;
- this.periodedevalab = periodedevalab;
- this.dateProd = dateProd;
- this.categorie = categorie;
- this.prixProduct = prixProduct;
- }
- public int getCodeUnique(){
- return this.codeUnique;
- }
- public int getPeriodedevalab(){
- this.periodedevalab = periodedevalab;
- return 0;
- }
- public String getCategorie(){
- return this.categorie;
- }
- public GregorianCalendar getDateProd(){
- return this.dateProd;
- }
- public double getPrix(){
- return this.prixProduct;
- }
- void addprixProduct(double prixProduct) {
- }
- int getAnnee() {
- return 0;
- }
- @Override
- public String toString(){
- return "Produit:" + "Categorie:"+this.categorie+'\n'+"Code Unique:"+
- this.codeUnique+'\n'+"Periodedevalab"+this.periodedevalab+'\n'+"Prix"+
- this.prixProduct+'\n'+"Date de production"+this.dateProd;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement