06 Aug 2009 @ 12:57 PM 
 

Summary of Polymorphism

 

http://www.javapassion.com/javase/javapolymorphism.pdf

Polymorphism

  • 1. An object of type class can reference any of its subclasses, and the methods of the subclass will be used.
    2. An object of type subclass can be passed into any method that takes its superclass, and the methods of the subclass will be used.
  • This means programming more generally by using polymorphic objects, dealing with base class, not each type.

    Polymorphic objects can be made by implementing interfaces, extending classes (including extending abstract classes).

    Tags Tags: , , , , , , , ,
    Categories: Uncategorized
    Posted By: Tommy
    Last Edit: 06 Aug 2009 @ 12 58 PM

    E-mailPermalink
     

    Responses to this post » (None)

     


    Comments are open. Feel free to leave a comment below.


     

    Leave A Comment ...

     

     XHTML:
    You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
    \/ More Options ...
    Change Theme...
    • Users » 2
    • Posts/Pages » 170
    • Comments » 8
    Change Theme...
    • VoidVoid
    • LifeLife « Default
    • EarthEarth
    • WindWind
    • WaterWater
    • FireFire
    • LiteLight
    • No Child Pages.
    • No Child Pages.
    • No Child Pages.