Naming convention for getters/setters in Java
Posted
by Simon
on Stack Overflow
See other posts from Stack Overflow
or by Simon
Published on 2010-06-01T08:01:13Z
Indexed on
2010/06/01
8:03 UTC
Read the original article
Hit count: 323
Hi guys,
if I have the following private member:
private int xIndex;
How should I name my gettter/setter:
getXindex()
setXindex(int value)
or
getxIndex()
setxIndex(int value)
© Stack Overflow or respective owner