美文网首页
Goods的实体类(JavaBean)

Goods的实体类(JavaBean)

作者: Joy_yang17 | 来源:发表于2018-05-22 19:53 被阅读5次

package com.nsu.bean;

public class Goods {
private int id;
private String goodname;
private float price;
private int num;
/**

  • @return the id
    /
    public int getId() {
    return id;
    }
    /
    *
  • @param id the id to set
    /
    public void setId(int id) {
    this.id = id;
    }
    /
    *
  • @return the goodname
    /
    public String getGoodname() {
    return goodname;
    }
    /
    *
  • @param goodname the goodname to set
    /
    public void setGoodname(String goodname) {
    this.goodname = goodname;
    }
    /
    *
  • @return the price
    /
    public float getPrice() {
    return price;
    }
    /
    *
  • @param price the price to set
    /
    public void setPrice(float price) {
    this.price = price;
    }
    /
    *
  • @return the num
    /
    public int getNum() {
    return num;
    }
    /
    *
  • @param num the num to set
    */
    public void setNum(int num) {
    this.num = num;
    }

}

相关文章

网友评论

      本文标题:Goods的实体类(JavaBean)

      本文链接:https://www.haomeiwen.com/subject/uxmkjftx.html