PascalCase
PascalCase is a naming convention in which the first letter of each word in a compound word is capitalized. Software developers often use PascalCase when writing source code to name functions, classes, and other objects.
PascalCase is similar to camelCase, except the first letter in PascalCase is always capitalized. Below are some examples.
- PascalCase: NewObject;
- camelCase: newObject;
- PascalCase: LongFunctionName()
- camelCase: longFunctionName()
Both PascalCase and CamelCase help developers distinguish words within names. For example, "LongFunctionName" is more readable than "longfunctionname."
While the term "PascalCase" comes from software development, it may describe any compound word in which the first letter of each word is capitalized. Examples include the company "MasterCard," the video game "StarCraft," and of course, the website "TechTerms."
NOTE: PascalCase is identical to "UpperCamelCase," but most developers avoid this term to avoid confusion with camelCase. "PascalCase" may also be written "Pascal Case" (two words).