12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Module 2 - Concepts of <strong>Object</strong> OrientationExample: Single InheritanceExample: Single Inheritance• One class inherits from anotherSuperclass(Parent)(Ancestor)Account- balance- name- number+ <strong>with</strong>draw()+ createStatement()GeneralizationRelationshipSavingsCheckingSubclass(Child)(Descendents)<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 45• The generalization is drawn from the subclass class to the superclass/parent class.• The terms “ancestor” <strong>and</strong> “descendent” can be used instead of “superclass” <strong>and</strong>“subclass.”2 - 45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!