InterviewSolution
Saved Bookmarks
| 1. |
What are getters and setters and why are they important? |
|
Answer» In PHP, both setters and getters are methods used by DEVELOPERS to obtain or declare variables, especially the private ones. Why are they important?They are crucial because these methods ALLOW for a certain LOCATION which will be ABLE to handle before declaring it or while REVERTING it back to the developers. |
|