Chapter 17 Working with VB .NET


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
...

 


Copyright (C) 2006. Sybase Inc. All rights reserved.