Encapsulation, a core concept in structured programming, refers to the combining of attributes and the procedures that operate on that data within a single class. This technique encourages data hiding by restricting external access to the internal state, allowing controlled modification through a