2013年10月12日星期六

java naming naming convention should be how ?

 This post last edited by the jdgdf566 on 2013-10-12 19:39:24
class which has a function :
public function EnableDebugMode () {}
; yes enableDebugMode it ? Or debugModeEnable?
------ Solution ---------------------------------------- ----
CamelCased : Requires lowercase first letter of the property name , the other first letter of each word , this is a basic , common method Fortunately, it is necessary so as get set , otherwise el expression type fail to get the value, the best way to see the name on knowing the meaning . .

landlord method return type function????

personally feel enableDebugMode to taste a little bit . .
------ Solution ---------------------------------------- ----
enableDebugMode

  
is enableDebugMode it ? Or debugModeEnable? Or other ?  
------ For reference only ---------------------------------- -----

------ For reference only ---------------------------------------

------ For reference only ---------------------------------------

class inside there is a function :
/ **
* Enable debug mode
* /
public int EnableDebugMode () {}
------ For reference only --------------------- ------------------
method lowercase first letter of the best

can look at the programming specifications

project documentation should have naming conventions
------ For reference only -------------------------- -------------

is enableDebugMode it ? Or debugModeEnable? Or other ?

没有评论:

发表评论