![Sybase Powerdesigner 7.5 Скачать руководство пользователя страница 46](http://html1.mh-extra.com/html/sybase/powerdesigner-7-5/powerdesigner-7-5_user-manual_1416512046.webp)
Defining interfaces
36
Defining interfaces
An interface is a type of class that is similar to a class but which is used to
implement the specification of an abstraction of a class. An interface is a
collection of operations used to specify the externally visible behavior of a
class. It has no implementation of its own.
A class that implements all the operations in an interface is said to realize the
interface. A class that requires one or more operations in an interface is said
to use the interface. The interface includes the signatures of the operations of
the class. Usually, an interface specifies only a limited part of the behavior of
a class. A class can implement one or more interfaces.
The following example shows a Name (interface) that realizes the action
GetName for an Employee (class).
Interface properties
An interface has the following properties:
Property
Description
Maximum
length
Name
Name of the interface
254
Code
Reference name for the interface
254
Comment
Descriptive comment for the interface
—
Stereotype
Subclassification of an interface derived from an
existing one. Extends the semantics of an interface
without changing it's structure
—
Visibility
Visibility of the interface, whose value denotes
how it may be seen outside its enclosing name
space
—
Generate
Indicates that the class will be automatically
included among the objects generated from the
model when you launch the generation process
—
Содержание Powerdesigner 7.5
Страница 1: ...OBJECT ORIENTED MODEL User s Guide POWERDESIGNER 7 5...
Страница 8: ...viii...
Страница 22: ...Defining OOM properties 12...
Страница 97: ...Chapter 2 Building an Object Oriented Model 87 4 Modify the operation display preferences 5 Click OK...
Страница 144: ...Defining check parameters 134...
Страница 208: ...Generating for XML 198 6 Click OK An XML file is generated with the file extension xml...
Страница 210: ...Customizing scripts 200...
Страница 224: ...Generating a CDM from an OOM 214...
Страница 238: ...Generating a PDM from an OOM 228...
Страница 260: ...Object language editor categories 250...
Страница 268: ...Applying business rules to objects 258...
Страница 288: ...278...