Encapsulation, a fundamental idea in structured programming, refers to the bundling of data and the functions that operate on that attributes within a single class. This technique encourages data protection by restricting unauthorized entry to the private state, permitting controlled modification through a exposed layer. Effectively, encapsulation