Java: OOPs getters and setters
Instance variable should be created as private
Access to instance variables from other objects is done through methods
Instance variable should be created as private
Access to instance variables from other objects is done through methods