Sybase 7.5 manual Analyzing interface properties, Creating an interface, Visibility

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 47
Image 47

Chapter 2 Building an Object-Oriented Model

An interface definition also includes the following properties, which are defined on associated property sheets:

Property

Attribute

Operations

Business rules

Description

Defines the characteristics of an interface

Carries out a service that effects behavior

A rule that your business follows. Business rules guide and document the creation of a model

Analyzing interface properties

Visibility

The visibility of an interface refers to the way in which it can be seen by

 

other objects. An interface that is visible to another object may influence the

 

structure or behavior of the object, or similarly, its own properties may be

 

affected by the other object.

Property

Private

Protected

Package

Public

Visible

Only to the interface itself

Only to the interface and its inherited objects

To all objects contained within the same package

To all objects in workspace

Creating an interface

There are three ways to create an interface:

Create an interface symbol in the Browser

Create an interface symbol directly in a diagram

Add a new interface to the list of classes

Creating an interface from the Browser

ϖTo create an interface from the Browser:

1 Right-click the Interfaces category in the Browser. 2 Select New from the contextual menu.

37

Page 47
Image 47
Sybase 7.5 manual Analyzing interface properties, Creating an interface from the Browser, Visibility