O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

System.Object

As we have already seen, every type in VB.NET, whether it is a value type or a reference type, ultimately inherits from the root class System.Object. The class ValueType inherits directly from Object. ValueType is the root for all value types, such as structures and simple types like Integer and Decimal.

Public Instance Methods of Object

There are four public instance methods of Object, three of which are virtual and frequently overridden by classes.

Equals
Overridable Overloads Public Function Equals( _
 ByVal obj As Object) As Boolean

This method compares an object with the object passed as a parameter and returns True if they are equal. Object implements this method to test for reference equality. ValueType overrides the method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required