0

Shouldn't a variable start with a lowercase like "personAge"?

14th Apr 2016, 3:26 PM
Elijah (ELi)
Elijah (ELi) - avatar
2 ответов
+ 3
The starting of a variable name with a lower case and then uppercase for each beginning word after is called CamelCase. Ex. firstName or studentLetterGrade. There's also Pascal Case which uses an uppercase letter for every word. Ex. FirstName or StudenLetterGrade. It's up to you which one you choose.
15th Apr 2016, 6:03 AM
Benjamin McKissick Jr.
Benjamin McKissick Jr.   - avatar
0
use camelCase for naming backing fields, local variables and parameters. use PascalCase for naming Methods and Properties
6th Jul 2016, 6:13 PM
Mark Angelo Rivo
Mark Angelo Rivo - avatar