You design a C# class using a class in PowerDesigner. Structures are classes with the <<structure>> stereotype, and enumerations are classes with the <<enumeration>> stereotype.
New class is used to declare a member with the same name or signature as an inherited member. To design a new class, you have to set the class new extended attribute to True. In the following example, class DialogBox inherits from class Window. Class Window contains an inner classifier Control, and so does class DialogBox. You do not want class DialogBox to inherit from the control defined in Window, to do so, you have to set the new extended attribute to True, in the Control class inner to DialogBox:
Abstract 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.
Sealed 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.
C# interfaces are modeled as standard interfaces. They can contain events, properties, indexers 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 struct contains two attributes:
For example: