In object-oriented design, what is the purpose of a “constructor”? A. To clean up resources when an object is no longer needed.
B. To define the interface that a class will implement.
C. To initialize the state of an object at the time of its creation.
D. To inherit properties from a base class.