Pascal Casing convention :
capitalizes the first character of each word.
Camel Casing convention :
capitalizes the first character of each word except the first word.
• Pascal Casing
o Class Name e.g. StudentClass
o Method Name (Sub or Function) e.g. FindStudent()
o Interface Name e.g. Istudent
• Camel Casing
o Private Variables e.g. studName
o Local Variables e.g. studCount
o Parameters Name e.g. studRoll
• Upper Casing
o Namespace should include Company Name followed by Module or System Name. e.g. COMP_SALES
o Constants e.g. COMPANY_NAME
• Other Useful Note:
o Parameters Name should followed by small ‘p’ to differentiate with the local variable
o Do not prefix data type in local variable, since this is not helpful in modern
o development environment. E.g.: strLocalvariable, intLocalVariable.
Interface name should be Prefixed with capital ‘I’
Tuesday, March 24, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment