This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I would like to know about
'class level or 'static' getters and setters ' in java beans. What are they how and where they are used. Any links, ideas, resources, sample code highly appreciated. Thanks in advance.
I presume you're confused with the difference between "class level", "static" & "getter & setters".
If you declare your method to be static, then you can use the method in another class without the need of creating any instance for it.
A static variable can also be accessed in the same way.
Getter & Setters methods are basically used for private variables to be used in another class using the methods and not the variables as such.
Hope it helps!
Music is all around us. All you have to do is just LISTEN to it,
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: 'class level or 'static' getters and setters