1.

What class and how to declare a class in VB.net?

Answer»

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



Discussion

No Comment Found