package com.example.ronie.client; import java.util.ArrayList; /** * Created by Ronie on 06/01/15. */ public class Recette extends ArrayList { private int id; private String type; private String nom; private int prix; public Recette() { } public Recette(String type, String nom, int prix) { super(); this.type = type; this.nom = nom; this.prix = prix; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getNom() { return nom; } public void setNom(String nom) { this.nom = nom; } public int getPrix() { return prix; } public void setPrix(int prix) { this.prix = prix; } public String toString() { return this.nom + " " + this.prix + "€"; } }