Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is not true. Constructors initialize values to the attributes or properties of an object, and these values may or may not be related to each other. For example, a constructor for a person object may set values for attributes such as name, age, and address, which are related to the person object. However, the constructor will not set identical values for two variables that are not related to each other.