Encapsulation
Encapsulation
<Sample PPT>
and Setter are methods update or set the value of a data member
respectively.
Getters are also called accessors and Setters are also called mutators.
Let us take an example to demonstrate the actual use of getter and setter in
java.