1. class的名稱第一個字母一定要大寫,如果有兩個單字,第二的單字的第一個字母也要大寫
ex. public class WhoIsTheImortal
2. 一個.java檔的檔名一定要跟檔案裡面最主要的那個class的名字一模一樣,例如你主要的class叫做"HelloKitty",那你寫的java code檔案就要叫做"HelloKitty.java"
methods命名規則:
習慣第一個小寫, 接下來單字大寫
ex. superCoolFuntion()
methods命名規則:
習慣第一個小寫, 接下來單字大寫
ex. superCoolFuntion()
No comments:
Post a Comment