#960 – Conventions for Naming Classes

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

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a comment