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