example of encapsulation
Answers
Answered by
2
Answer:
Encapsulation in Java is a process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines. We can create a fully encapsulated class in Java by making all the data members of the class private. ... The Java Bean class is the example of a fully encapsulated class.
Answered by
2
Answer:
I have written three examples of encapsulation in terms of computer networking. Please look at below.
Example to illustrate :-
- Trivial file transfer protocol (TFTP).
- TFTP client transfer 200 bytes of data.
- 4 Bytes of TFTP header gets added.
Similar questions