?? automaticconstructor.java
字號:
// initialization/AutomaticConstructor.java
// TIJ4 Chapter Initialization, Exercise 7, page 167
/* Create a class without a constructor, and then create an object of that
* class in main() to verify that the default constructor is automatically
* synthesized.
*/
class Aso {
void bark() {System.out.println("woof");}
}
public class AutomaticConstructor {
public static void main(String[] args) {
Aso a = new Aso();
a.bark();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -