Data encapsulation in C++ is nothing but a way to implement data abstraction. Although this concept is closely related to the data abstraction, it still has its own significance. Let us start exploring this...

seen from China
seen from China
seen from China
seen from Sweden
seen from Italy

seen from Malaysia
seen from Russia

seen from Italy

seen from Italy
seen from China

seen from Italy
seen from Russia
seen from Ireland

seen from United States

seen from Australia
seen from China
seen from Ireland

seen from United States
seen from Sweden
seen from China
Data encapsulation in C++ is nothing but a way to implement data abstraction. Although this concept is closely related to the data abstraction, it still has its own significance. Let us start exploring this...
Data Encapsulation
Data - Everything Above
Segments - Transport Layer
Packets - Network Layer
Frames - Data Link Layer
Bits - Physical Layer
When the stream of information is being passed down the layers a header is attached with specific information for that layer, such as the IP destination and source header for the Network Layer.
When the information is being reassembled on the receiving end, each header is stripped off and passed to the next layer up until it is considered real data and therefore legible to us humans - as long as their are no errors.