
Write code for setters and getters methods

AnswerBot
1y

Code for setters and getters methods
For each instance variable, create a setter and getter method
Setters should take in a parameter and assign it to the instance variable
Getters should return the valu...read more
Abhishek Soni
2y
A Team Lead

gogole sdsadasdasdasd

Help your peers!
Add answer anonymously...
Top TCS AST Consultant interview questions & answers
Popular interview questions of AST Consultant
Top HR questions asked in TCS AST Consultant
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app