What are getter methods and setter methods?



What are getter methods and setter methods?..

Answer / Parit Agarwal

"Getter methods are used to access the value of an instance variable without setting its value. Setter methods, on the other hand, are used to change or update the value of an instance variable."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

What are the best practises for improving visualforce performance ?

1 Answers  


What is the enhanced list view?

1 Answers  


How can I redirect the user to a page after processing is completed in the controller/extension?

1 Answers  


What are default methods for Batch Apex?

1 Answers   American Express,


If user does not have any right on particular record and have only read level access at object level. Can he change the record owner?

1 Answers  


What are the considerations for using group by clause?

1 Answers  


What happens to detail record when a master record is deleted? What happens to child record when a parent record is deleted?

1 Answers  


What are record types?

1 Answers  


What is the use of the database class in apex ?

1 Answers  


How rest can be accessed or which message format rest supports ? : salesforce integration

1 Answers  


How to add javascript remoting to a vf page?

1 Answers  


How can I participate in the developer force community?

1 Answers  


Categories