1.

Comparing Objects?

Answer»

When using the comparison OPERATOR (==), object variables are COMPARED in a simple MANNER, namely: Two object INSTANCES are equal if they have the same attributes and VALUES, and are instances of the same class.

When using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class

When using the comparison operator (==), object variables are compared in a simple manner, namely: Two object instances are equal if they have the same attributes and values, and are instances of the same class.

When using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class



Discussion

No Comment Found