To define accessibility for a class, an interface, an attribute or a method, you have to use the visibility property in PowerDesigner.
The following accessibility attributes are supported in PowerDesigner:
|
VB .NET accessibility |
PowerDesigner visibility |
|---|---|
|
Public (no restriction) |
Public |
|
Protected (accessible by derived classes) |
Protected |
|
Friend (accessible within the program that contains the declaration of the class) |
Friend |
|
Protected Friend (accessible by derived classes and within the program that contains the declaration of the class) |
Protected Friend |
|
Private (only accessible by the class) |
Private |
In the following example, the visibility of class Customer is friend:
Friend Class Customer