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

📄 program10_3.java

📁 《A first book of java》by Gary J.Bronson 北大出版社
💻 JAVA
字号:
public class Employee
{
  // class variable declaration section
  private static double taxRate = 0.0025;
  private int idNum;
  // class method definition section
  public Employee(int num)  // constructor
  {
    idNum = num;
  }
  public void display()
  {
    System.out.println("Employee number " + idNum
               + " has a tax rate of " + taxRate);
  } 
  
  public static void main(String[] args)
  {
    Employee BSMITH = new Employee(11122);
    Employee JJONES = new Employee(11133);
    BSMITH.display();
    JJONES.display();
  }
}              

⌨️ 快捷键说明

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