Рет қаралды 16,906
In this video, we will learn about encapsulation in java which will help us to hide our data members , variables and methods. We can protect our variables by making them private and give access to them using accessor like getters and setters.
#javainterview #javainterviewquestions #encapsulation #corejava