You design a VB .NET class using a class in PowerDesigner. Structures are classes with the <<structure>> stereotype, and enumerations are classes with the <<enumeration>> stereotype.
MustInherit class is equivalent to an abstract class. To design this type of class you need to create a class and select the Abstract check box in the General tab of the class property sheet.
NotInheritable class is equivalent to a final class. To design this type of class, you need to create a class and select the Final check box in the General tab of the class property sheet.
VB .NET interfaces are modeled as standard interfaces. They can contain events, properties, and methods; they do not support variables, constants, and constructors.
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:
For example:
Public Enum Day Monday Tuesday Wednesday Thursday Friday Saturday Sunday FirstDay = Monday LastDay = Sunday End Enum |