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.
A post by Ali Al Khawaja
Tags: webdev, oop, programming, beginners