Java 介面/實現命名約定 [重複] - Java Interfaces/Implementation naming convention [duplicate]

語言: CN / TW / HK

問題:

This question already has answers here : 這個問題在這裡已經有了答案
Closed 5 years ago . 5年前關閉。

How do you name different classes / interfaces you create?您如何命名您建立的不同類/介面? Sometimes I don't have implementation information to add to the implementation name - like interface FileHandler and class SqlFileHandler .有時我沒有要新增到實現名稱的實現資訊 - 比如介面FileHandler和類SqlFileHandler

When this happens I usually name the interface in the "normal" name, like Truck and name the actual class TruckClass .發生這種情況時,我通常以“正常”名稱命名介面,例如Truck ,並將實際類命名為TruckClass

How do you name interfaces and classes in this regard?在這方面,您如何命名介面和類?


解決方案:

參考一: https://stackoom.com/question/BoG5
參考二: Java Interfaces/Implementation naming convention [duplicate]
「其他文章」