Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of Getters and Setters method ?

Answer Posted / adarsh gowda

Getter and setter methods are used to retrieve and manipulate private variables in a different class. A "getter" method does as it name suggest, retrieves a the attribute of the same name. A setter method allows you to set the value of the attribute.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is numeric function?

984


What is the implementation of destroy method in java. Is it native or java code?

946


What is the difference between object oriented programming language and object based programming language?

1002


What is int short for?

1023


What is t in parametric equations?

977


What language is an assembler written in?

981


How we can run a jar file through command prompt in java?

951


What is class array in java?

1030


What is the common usage of serialization? What exceptions occur during serialization?

1097


Is there is any difference between a scrollbar and a scrollpane?

979


What do you mean by stream pipelining in java 8?

1196


How is final different from finally and finalize?

914


How to check if a list is sorted in java?

1018


How do you reverse a string in java without using string buffer?

1081


How many tetrahedral voids are there in bcc?

1071