Showing posts with label set and get functions in eclipse. Show all posts
Showing posts with label set and get functions in eclipse. Show all posts

Monday, 16 March 2015

How to generate automatically set and get function for elements in eclipse

In this post I am going to describe you how to generate setter and getter function automatically for elements of the class.

First of all go to any of the elements of the class, right click on it and go to sources and there you will find the option of many types like this image.

Generate Getters and Setters


Click on the Generate Getters and Setters.

Now It will ask for which elements you want to create those function. Select those elements by cheking those check boxes and click on finish.

I hope it helps. If you find any problem related this describe it in comment. May be I can help you.
Thanks for visiting my blog. Share it , like it or comment it If you like my post. Check again for new posts.

Related Posts

Related Posts Plugin for WordPress, Blogger...