C# 2.0 Classes

PowerDesigner models C# 2.0 classes as standard UML classes, but with additional properties.

For information about creating and working with classes, see Classes (OOM).

In the following example, class DialogBox inherits from class Window, which contains an inner classifier Control, as does class DialogBox:



{
 public class DialogBox : Window
 {
  public new class Control
  {
  }
 }
}

In the following example, the class Client is defined as abstract by selecting the Abstract check box in the General tab of the class property sheet.



{
 public abstract class Client
 {
  private int Name;
  private int ID;
 
 }
}

In the following example, the class SealedClient is defined as sealed by selecting the Final check box in the General tab of the class property sheet:



{
 public sealed class SealedClass
 {
  private int A1;
  private int A2;
 
 }
}


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