Tuesday, 1 September 2020

Coding standards

Class: camel casing, Represents Noun eg  Dog, Account etc

Interface: camel casing with italic characters, Represents Adjective eg Runnable , ActionListioner, Serializable

Method: camel casing starting with small letter, Represents Verb-Noun pair. eg getResults, doCalculation etc

Variables: camel casing starting with small letter, Represents small meaning words eg , buttonWidth, accountBalance, myList

Constants: All characters in upper case and underscore to connect the words. eg MIN_HEIGHT, PI, 

No comments:

Post a Comment