Problem Statement
Describe the lifecycle of an object in OOP.
Explanation
An object’s lifecycle starts when it is instantiated using a constructor. It lives in memory, interacting through methods and attributes. When it is no longer referenced, it becomes eligible for destruction or garbage collection. Understanding this helps manage memory efficiently and avoid resource leaks.