Object Lifecycle
Everything on SkillVeris tagged Object Lifecycle — collected across the glossary, study notes, blog, and cheat sheets.
6 resources across 1 library
Interview Questions(6)
Aggregation vs Composition in OOP
Aggregation and composition are both "has-a" relationships between objects, but composition implies strict ownership where the part cannot outlive the whole, w…
What is a Destructor in OOP?
A destructor is a special member function invoked deterministically when an object goes out of scope or is explicitly deleted, releasing resources such as memo…
What is a Finalizer in OOP?
A finalizer is a method a garbage-collected runtime may call on an object before reclaiming its memory, intended as a last-resort cleanup hook, but its executi…
Association vs Aggregation vs Composition
Association is any structural relationship where one object refers to another, aggregation is a weak has-a where the contained object can exist independently,…
How Does Garbage Collection Relate to OOP?
Garbage collection is an automatic memory-management strategy that reclaims heap memory occupied by objects once a language’s runtime determines no live refere…
Eager vs Lazy Initialization in OOP
Eager initialization creates an object’s dependencies or resources up front, at declaration or construction time, while lazy initialization defers creation unt…