Payroll System : Codename Project 2

Metaphor

We shall be using coding standards derived from Java. However, since VB.NET has some differences in its syntax of implementing OOP, we also have a few rules madeup for coding (tentative)…

  • All private members will be declared with an underscore before their names
  • All properties will have the same name as their private counterparts but without the underscore
  • If a method has a correlation with a property, the method name will end with an underscore, and the name will be the same as the property
  • As in Java, classes begin with uppercase letters
  • According to VB conventions, all classes will have the “cls” prefix and then begin with uppercase letters
  • As with VB conventions, forms and form controls will all have a prefix in their naming that is appropriate to their type, eg. frm for forms, cmd for command buttons, etc.
  • As in Java, variables start with lowercase letters and the next word with uppercase
  • As in Java, methods will be similarily named as variables

3 Comments

3 responses so far ↓

Leave a Comment