Search Here

Latest Java Dumps & java Tips

Enter your email address:

Delivered by FeedBurner

Thursday, November 5, 2009

Polymorphism Example

. Thursday, November 5, 2009

Polymorphism Example
For example, given a base class
shape
,
polymorphism enables the programmer to define
different
area
methods for any number of derived
classes, such as
circles
,
rectangles
and
triangles
.
No matter what shape an object is, applying the
area
method to it will return the correct results.
5

0 comments:

Post a Comment

Java Dumps Headline Animator