its easier for a new OOP programmer to read and understand at first.
languages such as Python, C++ and Java to mention a few.
of data implementation by restricting access to accessors and mutators.
the state of the object.
' fullName, which is used for the internal implementation of Person.
Private fullName As String = "Raymond Lewallen"
' Person.FullName() will return "Raymond Lewallen".
' Person class first, but thats a different discussion.
property discussed above, except this time its the set method that lets the caller modify the member data behind the scenes.
' have hidden the implementation of fullName.
' except this time we use a function.
' except this time we use a subroutine.
and implementation protection is called Encapsulation. Think of accessors and mutators as the pieces that surround the data that forms the class.
Next to come: Abstraction, which is closely tied to encapsulation.