Lately I have read some Java books, but there is a part that makes me confused in this kind of accessor methods - gettters and setters.
The question is:
I'm forced to write in this type of methods, for example, getName () or just have to write getName () because it makes life easier for the programmer to better serve object-oriented programming? Is the way to make getters or setters a rule or a convention?
If I write, for example, porName () instead of getName (), the compiler does not declare syntax error and does the same function, just change the method name.