What is the difference between aggregated and contained objects?



What is the difference between aggregated and contained objects?..

Answer / Rahul Singh Kasera

In COM (Component Object Model), an aggregated object is owned by another object, meaning the container retains the lifetime of the aggregated object. On the other hand, a contained object manages its own lifetime independently. The container only keeps a reference to the contained object, and when the reference count reaches zero, the contained object gets destroyed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COM DCOM Interview Questions

How do we create dcom object in vb6?

1 Answers  


What is the difference between aggregated and contained objects?

1 Answers  


What is IUnknown? What methods are provided by IUnknown?

3 Answers   IBM,


what is oops

11 Answers   Accenture,


Can you explain what is dcom?

1 Answers  


Explain Futures of COM?

1 Answers  


What is dcom?

1 Answers  


What is a moniker ?

3 Answers  


What happens when client calls CoCreateInstance?

2 Answers   Cap Gemini,


Explain queued components.

2 Answers  


how you call a dll as a COM dll.

2 Answers  


What are queued components?

1 Answers  


Categories