⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 counter.java

📁 A system to manage a grocery store with a single cash counter.
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -