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?
Advertisement
Answer
If your properties are static
, then getters and setters will also be static
. It all depends on what you want to do.