Because of encapsulation, a programmer can be confident that a person using their program will have a hard time trying to corrupt the data.
Encapsulation maintains the integrity of the data in a program.
Most programming languages today were not designed with the idea of objects in mind, so in order to maintain their popularity, objects were added to the language. This late addition can sometimes feel unnatural since the syntax that would feel normal is probably already being used for another purpose. Ruby was designed to remedy this problem. Yukihiro Matzumoto is a programmer in Japan. Ruby is untyped because everything is an object.