Wednesday, July 23, 2014

Encapsulation in java or in oops



It is a process of wrapping data and code together in single unit.
Setter and getter methods are use to get data in single unit …
Setter: - read only
Getter:- write only of data.
Set: - is use to set values
Get is use to get values.

No comments:

Post a Comment