Computer Science, asked by ankitdhara276, 8 months ago

example of encapsulation​

Answers

Answered by sahanaasahanaa4811
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 Anshu33845
2

Answer:

I have written three examples of encapsulation in terms of computer networking. Please look at below.

Example to illustrate :-

  1. Trivial file transfer protocol (TFTP).
  2. TFTP client transfer 200 bytes of data.
  3. 4 Bytes of TFTP header gets added.

Similar questions