I am develoing a Web Application, in that there is a utility method named getData() which I made it as a static.
Until now its fine, but this static method named getData() needs some data from setters and getters.
So now my question is can we make setter/getters as static?
I am develoing a Web Application, in that there is a utility method named
Share
If your properties are
static, then getters and setters will also bestatic. It all depends on what you want to do.