Structure

You design a VB .NET structure using a class with the <<structure>> stereotype. Structures can implement interfaces but do not support inheritance; they can contain events, variables, constants, methods, constructors, and properties.

The following structure contains two attributes and a constructor operation:



...
Public Class Point
 Protected Y As Integer
 Protected X As Integer
 Public Sub New()
  
 End Sub
End Class
...


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com