0% found this document useful (0 votes)
20 views3 pages

Polymorphism: Let's See How To Achieve These Advantages

Uploaded by

svt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Polymorphism: Let's See How To Achieve These Advantages

Uploaded by

svt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Polymorphism

 Code reusability
 flexibility
 Reduction in complexity

Let’s see how to achieve these advantages


Output:

The above code has achieved polymorphism but it hasn’t achieved advantages
of polymorphism yet. So next we will see how to achieve code reduction and
code flexibility.

In the above code we have now achieved the advantages of polymorphism.

You might also like