Tutorials
VB.NET 2005Class: Classical Object Oriented Concepts explain a class as a cookie cutter. A class allows you to create objects of the class. As a programmer you define a class with data fields, properties, methods and events. Then you can create objects based on that class that have state (fields, properties) and behavior (methods, events). A class can be considered as a specification of how the object of the class should look like and behave.
An object of the class is nothing other than a sequence of bytes at a specific memory location in the memory heap. Thus we can understand that an object is an instance of the class. We can see an illustration of a class.
Let's see an illustration of a class
Public Class Class1
Private VehicleType As String
Private VehicleModel As String
Private VehicleColor As String
Public Sub Accelerate()
' add code to Accelerate
End Sub
ReadOnly Property engineCapacity() As Decimal
Get
Return engineCapacity
End Get
End Property
End Class
Let us see the screen shots for doing this exercise:
Opening the new project:

Codes for the new DemoClass1

Watch the finale and Q&A session with the series presenters and their audience, with a special guest appearance by Jeff Richter. 57 Min.
Q&A Transcript in Word Format : Click here to download
Watch Online
Download The Video
|
if you are really interested in some feedback send me an email and ill create something of a report http://www.exforsys.com/tutorials/vb.net-2005/implementing-class-library-object-in-vb.net-2005.html |