Getter and Setter in java
Let’s learn what is a getter and setter in java? Getter and Setter in java Get and set methods are basically used in Encapsulation. Encapsulation means hiding sensitive date from user. To hide sensitive data from user we have to declare class variables as private. We all know private variables in a class can only…
Read More Getter and Setter in java