Do you know the getter and setter methods?
Answer / Tulika Srivastava
Getter and Setter methods are used in Object-Oriented Programming (OOP) to provide a controlled way of accessing and modifying private or protected variables within a class. A Getter method, also known as an accessor, returns the value of a variable, while a Setter method, also known as a mutator, sets the value of a variable. In Salesforce Apex, getters and setters are often used to encapsulate data and follow best practices for object-oriented design.
| Is This Answer Correct ? | 0 Yes | 0 No |
Validation rules, what are they use for in salesforce?
Difference between isblank and isnull?
How to do callout integration? : salesforce integration
List things that can be customized on page layouts?
Mention changing what may cause data loss?
What are the different methods of batch apex class?
What are the types of soql statements in salesforce? : salesforce integration
What is cloud computing security?
What is a difference between System log and debug log?
What is salesforce environment?
What is the difference between custom controller and extension in salesforce?
Highlight differences between sosl and soql.