This time, we're going to discuss the mother and father of all .NET classes: the venerable System.Object. We'll also discuss memory allocation and garbage collection (GC).
The .NET Framework, all objects are derived, directly or indirectly, from a common base class: System.Object. Remember that inheritance/derivation tell us that the derived class IS-A specialized version of the base class. That means every object in the .NET Framework IS-A(n) Object and therefore implements all of the functionality of System.Object. In other words, the methods of System.Object are available in any .NET Framework object.
Given that, you can see that it's handy to know just what those methods are and how they're to be used and, if appropriate, overridden.
|