#960 – Conventions for Naming Classes
October 25, 2013 Leave a comment
Below are the typical conventions used when naming classes:
- Use PascalCasing
- Capitalize first letter of each word
- Capitalize only first letter of 3+ letter acronyms
- Use a singular noun or noun phrase
- Don’t use underscores
- Don’t use abbreviations
- Don’t prefix the name with any special character (e.g. CPerson)
Here are some examples of class names that follow these guidelines:
- LogFile
- Book
- BookChapter
- ComplexNumber