Encapsulation is the process of wrapping code and data together into a single unit. We can create a fully encapsulated class in Java by making all the data members of the class private.
No reviews yet.