counter.java

来自「A system to manage a grocery store with 」· Java 代码 · 共 19 行

JAVA
19
字号
package grocerystore;

public interface Counter {
	
	// following attributes are public, static, and final, implicitly
	
	double VAT = 0.2; 
	
	
	// following methods are public and abstract, implicitly
	
	void read(String code, int pieces) throws NoSuchProduct;
	void print();
	void close();
	double total();
	double gross();
	double taxes();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?