UML&OCL Modeling Languages
Introduction
Inheritance is related to polymorphism : an instance from a class can be replaced by any subclass' instance.
Eg. A group can contains both (sub)groups that can contain groups ... or rectangles.
Classes' diagram (cont.)
POLYMORPHISM = Instance from a class can be replaced by any subclass' instance
POLYMORPHISM = Instance from a class can be replaced by any subclass' instance
POLYMORPHISM = Instance from a class can be replaced by any subclass' instance
...
As an exercise, how to model a files/directories structure from an Operating System (OS) ?
7 - 14thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL
thiry laurent ensisa uha alsace mulhouse france unified modeling modelisation language constraint object objet UML OCL