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

📄 passengercar.java

📁 PracticalJAVACode 的源码
💻 JAVA
字号:
class PassengerCar implements Vehicle, Asset
{
  public void startEngine() {
    //Code to start engine...
  }
  public void stopEngine() {
    //Code to stop engine...
  }
  public void accelerate()  {
    //Code to accelerate...
  }
  public void decelerate() {
    //Code to decelerate...
  }
  public int initialCost() {
    //Return initialCost...
  }
  public int currentValue() {
    //Calculate and return current value...
  }
  public double rateOfGrowth() {
    //Calculate and return the growth rate of the car...
    //For most cars, this will be negative.
  }
  public void loadPeopleInCar() {
    //Code to load people in car...
  }
  public int adultSeating() {
    return 4;
  }
  public int childSeating() {
    return 3;
  }
}

⌨️ 快捷键说明

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