📄 product.java
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -