product.java
来自「SSD3 实验5的上交文件 自己实验做得」· Java 代码 · 共 45 行
JAVA
45 行
// Decompiled by DJ v2.9.9.61 Copyright 2000 Atanas Neshkov Date: 2008-12-15 18:57:55
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Product.java
public class Product
{
public Product(String s, String s1, double d)
{
code = s;
description = s1;
price = d;
}
public String getCode()
{
return code;
}
public String getDescription()
{
return description;
}
public double getPrice()
{
return price;
}
public boolean equals(Object obj)
{
return (obj instanceof Product) && getCode().equals(((Product)obj).getCode());
}
public String toString()
{
return getCode() + "_" + getDescription() + "_" + getPrice();
}
private String code;
private String description;
private double price;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?