Professional Documents
Culture Documents
(UML)
Class and Objects Diagrams
1
Outlines
Data Types Aggregation
Classes Composition
Describing Objects With Classes Association Classes
Associations N-array Associations
Generalization And Specialization Qualified Associations
Inheritance Of Attributes And Interfaces
Operations Templates
2
Inheritance
Process by which properties of a class are automatically define for all
descendent classes.
All the attributes and operations defined in the ancestors of a class are also
features of the class itself.
Common features shared by a number of classes can be defined in one place
Available in a number of different classes
3
Inheritance (Cont’d)
Inherited features also belong to subclasses
Figure 8.13: Partial account hierarchy, overwriting the ‘withdraw’ and ‘deposit’ operation
6
Abstract Operations
Some operations cannot be implemented in abstract classes
Any class containing an abstract operation must be an abstract class.
An abstract operation must be overridden in descendant classes by a non-
abstract operation
7
Summary
Inheritance
Modifying Subclasses
Abstract Operations
8
Next Lecture
Thank You.
Aggregation