Question OOP-ENC-0024
EasyWhat is validation in a setter method?
- A.
Checking that a new value is acceptable before storing it
- B.
Printing the value
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Encapsulation question
What is validation in a setter method?
Checking that a new value is acceptable before storing it
Printing the value
Sign up free to see the answer and a step-by-step explanation.
Deleting the old object
Converting the value to text