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)

Cloudinary image

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay