Unit 3
Unit 3
Unit 3
tagged values;
operation parameters;
visibility;
initialization values (unless they have business
significance).
Name compartment
• Class name is in UpperCamelCase – it begins with an uppercase
letter, and then is in mixed upper and lowercase, with each word
beginning in uppercase.
• Special symbols such as punctuation marks, dashes, underscores,
ampersands, hashes, and slashes are always avoided. .
• Class scope operations can only access other class scope operations
and attributes.
UML provides two standard stereotypes to tailor the semantics of packages for
specific purposes – these are listed in Table 11.2.
• when an element in one namespace needs to
refer to an element in a different namespace,
• it has to specify both the name of the element
it wants, and a way to navigate through the
namespaces to that element.
• This navigation path is known as the qualified
name or pathname of the element.
You create a qualified name by prefixing the element name with the names of the packages in which it resides, separated by a double colon.
You list the outermost package first, and then each package in order of nesting until you get to the element. Qualified names are very similar to path names in directory structures.
Nested packages
• In package generalization,
• the more specialized child packages inherit the
public elements from their parent package.
• Child packages may add new elements, and
may override elements in the parent package
by providing an alternative element with the
same name.
Child packages inherit elements from their parent.
They may override parent elements. They may add new elements.