1. Component :
A component is a collection of objects that furnish a set of offerings to different systems. They have many elements in frequent with objects.Components can also be run both locally or in a distributed fashion. Many examples of locally run components exist and are oftentimes used to supply precise performance to exterior programs.Components are a self-contained entity that exports performance to its surroundings and might also additionally import functionality from its surroundings the use of well-defined and open interfaces. Components Provide offerings to different structures and Use referred to interfaces to engage with different structures.
2. Object :
The object is a real-world entity which is a bundle of data and its conduct (often acknowledged as methods). These real-world objects share two characteristics, they have states and behaviors. For example, House is an object having Address, color (state) and Open window, close door (Behavior). Objects are key to grasp object-oriented technology. An object is created from class as class provides the blueprint for an object.
Difference between Component and Object :
|1.||A component can be considered as a series of one or more classes.||An object is created from the class.|
|2.||Components use continual storage.||Objects have a local state.|
|3.||Components are like black boxes.||Objects are characterized via a white box.|
|4.||Components have a greater massive set of intercommunication mechanisms.||Objects commonly use Messaging mechanisms.|
|5.||Components assist third party composition.||Objects do now not assist plug and play through the third party.|
|6.||A component can be implemented in any programming language unlike a object.||An object can be implemented only in Object oriented programming language.|
|7.||A component have persistence.||An object does not have persistence.|
|8.||A component is usually static.||An object is dynamic.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Distributed Component Object Model (DCOM)
- Peripheral Component Interconnect (PCI)
- What is PCIe(Peripheral Component Interconnect express)?
- What is PCIX(Peripheral Component Interconnect Extended)?
- Difference between Functional Programming and Object Oriented Programming
- Difference between Entity and Object
- Difference between Function Oriented Design and Object Oriented Design
- Difference between Structured and Object-Oriented Analysis
- Difference between Source Code and Object Code
- Differences between Procedural and Object Oriented Programming
- Primitive data type vs. Object data type in Java with Examples
- Difference and Similarities between PHP and C
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
- Difference between ++*p, *p++ and *++p
- Difference Between DOS and Windows
- Difference between User Level thread and Kernel Level thread
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.