What is the key difference between object and component? Can anyone provide examples in Java that how objects and components are related? If possible, please provide some examples whether what are objects and what are components.
What is the key difference between object and component? Can anyone provide examples in
Share
To map it to some real life example,
In a car,
This is over-simplification (and subjective as well ) and I have mentioned it for the sake of simplicity and understanding. A component may be composed of other component as well. But each component serves a very specific purpose (e.g. Engine, Door, Tyre). The objects on the other hand are at more granular level and serve as building blocks of larger components/systems.