store.java
来自「java程序设计 清华出版社 孙燮华老师编写的程序源代码」· Java 代码 · 共 27 行
JAVA
27 行
//store.java. shoe的派生类
public class store{
static shoe hightop;
public static void init(){
hightop=new shoe();
}
public static void getInfo(shoe item){
System.out.println("This Product is made by "+item.MAKER+".");
System.out.println("It costs $ "+item.getPrice(1)+"."+"\n");
}
public static void orderInfo(product item){
System.out.println("To order from "+item.MAKER+
" call "+item.PHONE+".");
System.out.println("Each item costs $"+item.getPrice(1)+".");
}
public static void main(String argv[]){
init();
getInfo(hightop);
orderInfo(hightop);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?