Tuesday 9 November 2010

Camel case Vs Pascal case

Camel case Also called “mixed case” or “inter case,” this naming convention joins words without using spaces or underscores. The first letter is lowercase, hence the name camel for the hump where an uppercase letter appears. For example, firstName is a variable that uses camel case.

Pascal case Very similar to the camel case, the Pascal case begins with uppercase and then joins words with capital letters. You will find that classes and constructor functions typically use the Pascal case. For example, CustomerList is an example of the Pascal case where two words are joined into one.

No comments:

Post a Comment