Each object in VB.Net is defined by the class. A class can act as a data type and describe the variables, procedures, and properties of any given object. As we know, objects are just instances of different classes; and it is possible to create as many objects as we want once we have defined a class. In short, a Class is a collection of different objects of similar types.

Example

                                        

Module MyCLASSBOX
    Class Area
        Public height As Double 'This is Height of a box'
    End Class

Suggest An Answer

No suggestions avaliable!