Encapsulation vs Container - What's the difference?
encapsulation | container |
The act of enclosing in a capsule; the growth of a membrane around (any part) so as to enclose it in a capsule.
Grouping together an object’s ‘state’ (its data) and the operations that may alter or interrogate it (its methods).Huw Collingbourne, The Book of Ruby'', ''‘Encapsulation’ or ‘Information Hiding’? , page 140
(label) The process of arranging data into packets that can be transmitted using a given protocol.
----
An item in which objects, materials or data can be stored or transported.
A very large, typically metal, box used for transporting goods (also cargo container).
(by extension) someone who holds people in their seats or in a (reasonably) calm state.
(computing) A file format that can hold various types of data.
* 2011 , Cory Altheide, Harlan Carvey, Digital Forensics with Open Source Tools (page 187)
(computing, GUI) Any user interface component that can hold further (child) components.
As nouns the difference between encapsulation and container
is that encapsulation is the act of enclosing in a capsule; the growth of a membrane around (any part) so as to enclose it in a capsule while container is a big container made of metal.encapsulation
English
Noun
(wikipedia encapsulation) (en noun)References
container
English
Noun
(en noun)- As the MP4 container can store audio, video, or both, the M4A naming and file extension is used to hint that this MP4 container holds solely audio information.
