June 2006
Intermediate to advanced
1344 pages
42h 52m
English
As we have mentioned, all classes inherit directly or indirectly from the Object class (namespace System), so its seven methods are inherited by all other classes. Figure 10.20 summarizes Object’s methods.
| Method | Description |
|---|---|
| Equals | Compares two objects for equality; returns True if they are equal and False otherwise. The method takes any Object as an argument. When objects of a class must be compared for equality, the class should override method Equals to compare the contents of the two objects. The method’s implementation should meet the following requirements:
|
Read now
Unlock full access