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

📄 store.java

📁 java程序设计 清华出版社 孙燮华老师编写的程序源代码
💻 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 + -