Structural Things
Structural Things
1
7)What is an interface? (collection of operations that specify services of a class)
A)An interface is a collection of operations that specify a service of a class or
component
8)What an interface describes?(externally visible behavior of that element)
A)An interface describes the externally visible behavior of that element
9)What an interface represents?(complete behavior of a class or only a part of
it)
A)An interface might represent the complete behavior of a class or component or
only a part of that behavior.
10)What an interface defines? (a set of operation specifications (signatures))
A)An interface defines a set of operation specifications that is their signatures but
never a set of implementations.
11)How an interface is declared?(with key word <<interface>> above the name,
attributes are not relevant except constants)
A)The declaration of an interface looks like a class with the keyword
<<interface>> above the name, attributes are not relevant except some times to
show constants.
12)How an interface of a class to the outside world is represented?(with a small
circle attached to the class box by a line)
A)An interface provided by a class to the outside world is shown as a small circle
attached to the class box by a line.
13)How an interface required by a class from some other class is represented?
(with a small semi circle attached to the
class box)
A)An interface required by a class from some other class is shown as a small semi
circle attached to the class box by a line.
2
14)Diagram of Interfaces
3
18)Diagram of Collaborations
Figure: Collaborations
4
5