Computer Science, asked by keshavgujjar, 1 year ago

what is use of enscapsulation

Answers

Answered by vishalkumarpal
2
Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class

PRACHINIHARKI: Nice
vishalkumarpal: oh thnks u wlcome
Answered by KUMARCHHOTU
1
Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class.
Similar questions