SE450
:
Java Naming Conventions
[81/86]
property = pair of methods
public X get
PropertyName
()
public void set
PropertyName
(X newValue)
Replace
propertyName
with actual name
(e.g.
getColor
/
setColor
)
Exception for
boolean
properties:
public boolean is
PropertyName
()
Decapitalization hokus-pokus:
getColor -> color
getURL -> URL