张海江
2016-12-30 455b3bee444ee94b016be9d4f8ad9111f7e3c6fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.pingplusplus.demoapp;
 
/**
 * Created by sunkai on 15/3/18.
 */
public class Good {
    private String name;
    private int imgRes;
    private int count;
    private float price;
 
    public Good(String name,int imgRes,int count,float price){
        setName(name);
        setCount(count);
        setImgRes(imgRes);
        setPrice(price);
    }
    public int getCount() {
        return count;
    }
 
    public float getPrice() {
        return price;
    }
 
    public void setPrice(float price) {
        this.price = price;
    }
 
    public void setCount(int count) {
        this.count = count;
    }
 
    public void setImgRes(int imgRes) {
 
        this.imgRes = imgRes;
    }
 
    public void setName(String name) {
 
        this.name = name;
    }
 
    public int getImgRes() {
 
        return imgRes;
    }
 
    public String getName() {
        return name;
    }
}