OOP Concept for Beginners: What is Encapsulation

added by DotNetKicks
12/1/2017 3:07:09 PM

1 Kicks, 44 Views

Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of bundling data and methods that work on that data within one unit, e.g., a class in Java. This concept is also often used to hide the internal representation, or state, of an object from the outside.