What is the distinction between a class definition, an object, and an object's lifetime?
Show answer and explanation
A class definition declares a type, its representation, and the operations associated with it; it is not itself a runtime instance. An object is a region of storage with a type and value, and separate objects normally contain separate non-static state while static members belong to the class. Storage can exist before an object's lifetime begins or after it ends, so lifetime—not just allocated bytes—determines when accessing the object is valid.
A class definition declares a type, its representation, and the operations associated with it; it is not itself a runtime instance. An object is a region of storage with a type and value, and separate objects normally contain separate non-static state while static members belong to the class. Storage can exist before an object's lifetime begins or after it ends, so lifetime—not just allocated bytes—determines when accessing the object is valid.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.