DEV Community

Ali Al Khawaja
Ali Al Khawaja

Posted on

In OOP, instance variables are part of an instanced object but you can't access them from outside of the instanced object, to solve this problem we use setters and getters.

Top comments (0)