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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DEV475</strong> <strong>Mastering</strong> <strong>Object</strong>-<strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>What Is Polymorphism?What Is Polymorphism?• The ability to hide many differentimplementations behind a single interfaceManufacturer AManufacturer BManufacturer COO Principle:Encapsulation<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 28The Greek term polymorphos means “having many forms.” There may be one ormany implementations of a given interface. Every implementation of an interfacemust fulfill the requirements of that interface. In some cases, the implementation canperform more than the basic interface requirements.For example, the same remote can be used to control any type of television(implementation) that supports the specific interface that the remote was designed tobe used <strong>with</strong>.2 - 28

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

Saved successfully!

Ooh no, something went wrong!