products.java
来自「Java企业级开发项目实践,这是他的附光盘」· Java 代码 · 共 61 行
JAVA
61 行
//---------------------------------------------------------
// Application: eShop of Network
// Author : eSingle
// File : Products.java
//
// Copyright 2002 LandSoft Corp.
// Generated at Mon Nov 18 20:15:26 CST 2002
// Created by caoguangxin
// mailto:gxcao@mail.tsinghua.edu.cn
//---------------------------------------------------------
//定义包名
package com.landsoft.eshop.model;
public class Products {
//定义商品属性
private float martprice;
private float favoprice;
private String content;
private String productname;
private String typesname;
private String salename;
//定义商品的Get、Set方法
public float getMartprice() {
return martprice;
}
public float getFavoprice() {
return favoprice;
}
public String getContent() {
return content;
}
public String getProductname() {
return productname;
}
public String getTypesname() {
return typesname;
}
public String getSalename() {
return salename;
}
public void setMartprice(float martprice) {
this.martprice = martprice;
}
public void setFavoprice(float favoprice) {
this.favoprice = favoprice;
}
public void setContent(String content) {
this.content = content;
}
public void setProductname(String productname) {
this.productname = productname;
}
public void setTypesname(String typesname) {
this.typesname = typesname;
}
public void setSalename(String salename) {
this.salename = salename;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?