What are getter methods and setter methods? : salesforce crm



What are getter methods and setter methods? : salesforce crm..

Answer / Devaj Pandey

"Getter methods are functions that return the value of a private variable. They allow for read-only access to data stored in an object. Setter methods, on the other hand, are functions used to update or modify the values of a private variable within an object."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

Difference between data-table vs page block table in visualforce page?

1 Answers   Cognizant,


Is it possible to change/modify the child record settings of a master-detail relationship, for setting owd (organization-wide settings)?

1 Answers  


What are roll up summary fields? : salesforce objects & fields

1 Answers  


Will data be lost in a custom field if data type is changed to number from any other data type?

1 Answers  


Can a trigger make a call to apex callout method?

1 Answers  


What is roll-up summary?

1 Answers  


What is a permission set?

1 Answers  


How can we enable visualforce editor? : salesforce visualforce

1 Answers  


What are different types of reports? : salesforce reports and dashboards

1 Answers  


Explain Class Access Modifiers in salesforce?

1 Answers  


Is it possible to change the existing data types of custom fields, if Yes please explanin?

1 Answers  


How many records can a select query return? How many records can a sosl query return?

1 Answers  


Categories