
.NET Programming Fundamentals • Chapter 5 201
End Get
End Property
Public Sub Drive()
'make vehicle drive
End Sub
End Class
Even though our Drive procedure doesn’t do anything, you can see how easy
it is to create class methods. If the procedure had been declared as Private,it
could be called only within the class and would not be available outside the class.
System.Object
Everything in .NET is derived from the System.Object class.You can think of it as
the super class or root of all classes in .NET.When a class is created, it automati-
cally inherits the properties and methods of the System.Object. Everything in
.NET is an object, therefore everything in ...